10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601ce5d commit 6858541Copy full SHA for 6858541
_tour/mixin-class-composition.md
@@ -71,7 +71,7 @@ We would like to combine the functionality of `StringIterator` and `RichIterator
71
```tut
72
class RichStringIter extends StringIterator("Scala") with RichIterator
73
val richStringIter = new RichStringIter
74
-richStringIter foreach println
+richStringIter.foreach(println)
75
```
76
The new class `RichStringIter` has `StringIterator` as a superclass and `RichIterator` as a mixin.
77
0 commit comments