From 5d16a62072545e16976e19d0383cd5344f418db5 Mon Sep 17 00:00:00 2001 From: fResult Date: Sun, 2 Jun 2024 13:53:58 +0700 Subject: [PATCH] update code block to fix markdown error which IntelliJ raised --- _th/tour/traits.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_th/tour/traits.md b/_th/tour/traits.md index bb6dfddd9c..eb8176435f 100644 --- a/_th/tour/traits.md +++ b/_th/tour/traits.md @@ -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 @@ -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 @@ -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: