diff options
Diffstat (limited to 'src/library/scala/collection/Iterator.scala')
-rw-r--r-- | src/library/scala/collection/Iterator.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/Iterator.scala b/src/library/scala/collection/Iterator.scala index 0115cc154c..20712f918c 100644 --- a/src/library/scala/collection/Iterator.scala +++ b/src/library/scala/collection/Iterator.scala @@ -322,8 +322,8 @@ trait Iterator[+A] extends TraversableOnce[A] { */ def drop(n: Int): Iterator[A] = { var j = 0 - while (j < n && this.hasNext) { - this.next + while (j < n && hasNext) { + next() j += 1 } this |