From 159bc6bf295e49f7902404479f22aeb467c014a4 Mon Sep 17 00:00:00 2001 From: Dmitry Linov Date: Wed, 2 May 2018 11:12:27 +0400 Subject: [PATCH] Update iterators.md --- _overviews/collections/iterators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/collections/iterators.md b/_overviews/collections/iterators.md index f139d8f733..399243b2f6 100644 --- a/_overviews/collections/iterators.md +++ b/_overviews/collections/iterators.md @@ -52,7 +52,7 @@ Another example is the `dropWhile` method, which can be used to find the first e it: Iterator[java.lang.String] = non-empty iterator scala> it dropWhile (_.length < 2) res4: Iterator[java.lang.String] = non-empty iterator - scala> it.next() + scala> res4.next() res5: java.lang.String = number Note again that `it` was changed by the call to `dropWhile`: it now points to the second word "number" in the list.