Skip to content

Commit

Permalink
update code block to fix markdown error which IntelliJ raised
Browse files Browse the repository at this point in the history
  • Loading branch information
fResult authored and sila-strike committed Oct 27, 2024
1 parent cec414c commit 5d16a62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _th/tour/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ trait Iterator[A] {

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

```scala
```scala 3
trait Iterator[A]:
def hasNext: Boolean
def next(): A
Expand Down Expand Up @@ -92,7 +92,7 @@ iterator.next() // returns 1

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

```scala
```scala 3
trait Iterator[A]:
def hasNext: Boolean
def next(): A
Expand Down Expand Up @@ -179,7 +179,7 @@ animals.foreach(pet => println(pet.name)) // แสดงค่า Harry Sally
{% tab 'Scala 3' for=trait-pet-example %}
```scala
```scala 3
import scala.collection.mutable.ArrayBuffer
trait Pet:
Expand Down

0 comments on commit 5d16a62

Please sign in to comment.