From 0a0fe8c78c740acb5690fc0e2a357f17583999e1 Mon Sep 17 00:00:00 2001 From: fResult Date: Mon, 3 Jun 2024 23:56:16 +0700 Subject: [PATCH] fix bug scala 3's code blocks doesn't highlight color --- _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 eb8176435f..bb6dfddd9c 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 3 +```scala 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 3 +```scala 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 3 +```scala import scala.collection.mutable.ArrayBuffer trait Pet: