Skip to content

Commit 872df02

Browse files
authored
Update mixin-class-composition.md
The declared class for examples is `Iter`
1 parent 4c1aa50 commit 872df02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/mixin-class-composition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ object StringIteratorTest extends App {
7878
iter foreach println
7979
}
8080
```
81-
The new class `RichStringIter` has `StringIterator` as a superclass and `RichIterator` as a mixin.
81+
The new class `Iter` has `StringIterator` as a superclass and `RichIterator` as a mixin.
8282

8383
With single inheritance we would not be able to achieve this level of flexibility.

0 commit comments

Comments
 (0)