From c1c3b0b99f6ba60c48e4b085743878175426b714 Mon Sep 17 00:00:00 2001 From: Pavel Movchan Date: Sun, 22 Oct 2017 03:35:29 +0300 Subject: [PATCH] Fix typo: 'Iter' -> 'RichStringIter' --- _tour/mixin-class-composition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/mixin-class-composition.md b/_tour/mixin-class-composition.md index 2c45927f6d..f1d40bcfda 100644 --- a/_tour/mixin-class-composition.md +++ b/_tour/mixin-class-composition.md @@ -78,6 +78,6 @@ object StringIteratorTest extends App { richStringIter foreach println } ``` -The new class `Iter` has `StringIterator` as a superclass and `RichIterator` as a mixin. +The new class `RichStringIter` has `StringIterator` as a superclass and `RichIterator` as a mixin. With single inheritance we would not be able to achieve this level of flexibility.