Skip to content

Commit a16c4d1

Browse files
authored
Remove a wrong '}'
1 parent e901185 commit a16c4d1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

_tour/mixin-class-composition.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ This trait implements `foreach` by continually calling the provided function `f:
136136
```scala
137137
trait RichIterator extends AbsIterator:
138138
def foreach(f: T => Unit): Unit = while hasNext do f(next())
139-
}
140139
```
141140
This trait implements `foreach` by continually calling the provided function `f: T => Unit` on the next element (`next()`) as long as there are further elements (`while hasNext`). Because `RichIterator` is a trait, it doesn't need to implement the abstract members of AbsIterator.
142141

0 commit comments

Comments
 (0)