Skip to content

Commit bde349a

Browse files
authored
Change "Iter" class name for "RichStringIter"
The comments refer to the "RichStringIter" class name which I guess makes more sense for the code example given than "Iter".
1 parent 0063e21 commit bde349a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_tour/mixin-class-composition.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ We would like to combine the functionality of `StringIterator` and `RichIterator
7373

7474
```tut
7575
object StringIteratorTest extends App {
76-
class Iter extends StringIterator(args(0)) with RichIterator
77-
val iter = new Iter
78-
iter foreach println
76+
class RichStringIter extends StringIterator(args(0)) with RichIterator
77+
val richStringIter = new RichStringIter
78+
richStringIter foreach println
7979
}
8080
```
8181
The new class `RichStringIter` has `StringIterator` as a superclass and `RichIterator` as a mixin.

0 commit comments

Comments
 (0)