diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/Iterator.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/Iterator.scala b/src/library/scala/collection/Iterator.scala index 9ba16976bd..720339f054 100644 --- a/src/library/scala/collection/Iterator.scala +++ b/src/library/scala/collection/Iterator.scala @@ -688,12 +688,12 @@ trait Iterator[+A] extends TraversableOnce[A] { } else { if (status == 1) store(hd) + status = -1 while (self.hasNext) { val a = self.next() if (p(a)) store(a) else { hd = a - status = -1 return true } } |