From bde349a1cbf341deaa9c055d6701de0006ebe249 Mon Sep 17 00:00:00 2001 From: Federico Repetto Date: Tue, 29 Aug 2017 12:27:36 +0100 Subject: [PATCH] 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". --- _tour/mixin-class-composition.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_tour/mixin-class-composition.md b/_tour/mixin-class-composition.md index 470f294826..f1d40bcfda 100644 --- a/_tour/mixin-class-composition.md +++ b/_tour/mixin-class-composition.md @@ -73,9 +73,9 @@ We would like to combine the functionality of `StringIterator` and `RichIterator ```tut object StringIteratorTest extends App { - class Iter extends StringIterator(args(0)) with RichIterator - val iter = new Iter - iter foreach println + class RichStringIter extends StringIterator(args(0)) with RichIterator + val richStringIter = new RichStringIter + richStringIter foreach println } ``` The new class `RichStringIter` has `StringIterator` as a superclass and `RichIterator` as a mixin.