Skip to content

Commit 0a0fe8c

Browse files
fResultsila-strike
authored andcommitted
fix bug scala 3's code blocks doesn't highlight color
1 parent 5d16a62 commit 0a0fe8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_th/tour/traits.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ trait Iterator[A] {
4444

4545
{% tab 'Scala 3' for=trait-iterator-definition %}
4646

47-
```scala 3
47+
```scala
4848
trait Iterator[A]:
4949
def hasNext: Boolean
5050
def next(): A
@@ -92,7 +92,7 @@ iterator.next() // returns 1
9292

9393
{% tab 'Scala 3' for=trait-intiterator-definition %}
9494

95-
```scala 3
95+
```scala
9696
trait Iterator[A]:
9797
def hasNext: Boolean
9898
def next(): A
@@ -179,7 +179,7 @@ animals.foreach(pet => println(pet.name)) // แสดงค่า Harry Sally
179179
180180
{% tab 'Scala 3' for=trait-pet-example %}
181181
182-
```scala 3
182+
```scala
183183
import scala.collection.mutable.ArrayBuffer
184184
185185
trait Pet:

0 commit comments

Comments
 (0)