From 3334b9854c121ff82ef4cfe720982cb9b159e438 Mon Sep 17 00:00:00 2001 From: marcogalluzzi Date: Thu, 16 May 2024 00:01:07 +0100 Subject: [PATCH] Update traits.md The `new` keyword is not needed in Scala 3 --- _tour/traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/traits.md b/_tour/traits.md index 3ead3d397..f719f9674 100644 --- a/_tour/traits.md +++ b/_tour/traits.md @@ -98,7 +98,7 @@ class IntIterator(to: Int) extends Iterator[Int]: 0 end IntIterator -val iterator = new IntIterator(10) +val iterator = IntIterator(10) iterator.next() // returns 0 iterator.next() // returns 1 ```