Skip to content

Commit 0d75ccb

Browse files
authored
Merge pull request #3021 from marcogalluzzi/patch-1
Update traits.md
2 parents cba8042 + 3334b98 commit 0d75ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: _tour/traits.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class IntIterator(to: Int) extends Iterator[Int]:
9898
0
9999
end IntIterator
100100

101-
val iterator = new IntIterator(10)
101+
val iterator = IntIterator(10)
102102
iterator.next() // returns 0
103103
iterator.next() // returns 1
104104
```

0 commit comments

Comments
 (0)