Skip to content

Commit 67edd7a

Browse files
authored
Merge pull request #873 from voidance/patch-2
Change "Iter" class name for "RichStringIter"
2 parents c8cf12f + bde349a commit 67edd7a

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 `Iter` has `StringIterator` as a superclass and `RichIterator` as a mixin.

0 commit comments

Comments
 (0)