diff options
-rwxr-xr-x | 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 1853571e21..bf893b6acd 100755 --- a/src/library/scala/collection/Iterator.scala +++ b/src/library/scala/collection/Iterator.scala @@ -938,7 +938,7 @@ trait Iterator[+A] { self => * @deprecated use @see zipWithIndex in Iterator */ @deprecated def counted = new CountedIterator[A] { - private var cnt = -1 + private var cnt = 0 def count = cnt def hasNext: Boolean = self.hasNext def next(): A = { cnt += 1; self.next } |