Skip to content

Commit

Permalink
Merge pull request #3021 from marcogalluzzi/patch-1
Browse files Browse the repository at this point in the history
Update traits.md
  • Loading branch information
Philippus committed Jul 25, 2024
2 parents cba8042 + 3334b98 commit 0d75ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _tour/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 0d75ccb

Please sign in to comment.