Skip to content

Commit 4171a29

Browse files
authored
Merge pull request #2532 from flomebul/patch-1
Remove a wrong '}'
2 parents e901185 + a16c4d1 commit 4171a29

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)