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.
2 parents c8cf12f + bde349a commit 67edd7aCopy full SHA for 67edd7a
_tour/mixin-class-composition.md
@@ -73,9 +73,9 @@ We would like to combine the functionality of `StringIterator` and `RichIterator
73
74
```tut
75
object StringIteratorTest extends App {
76
- class Iter extends StringIterator(args(0)) with RichIterator
77
- val iter = new Iter
78
- iter foreach println
+ class RichStringIter extends StringIterator(args(0)) with RichIterator
+ val richStringIter = new RichStringIter
+ richStringIter foreach println
79
}
80
```
81
The new class `Iter` has `StringIterator` as a superclass and `RichIterator` as a mixin.
0 commit comments