diff options
author | Paul Phillips <paulp@improving.org> | 2009-05-08 19:16:31 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-05-08 19:16:31 +0000 |
commit | eead6482221f109f18c9c8f1b94d6666e7959426 (patch) | |
tree | a29da2ef8edd89b1ff37d3dcb492b457b7fbe027 /src/library | |
parent | 1e8d2048517dcd57b33bbd27e850f6362e5e7074 (diff) | |
download | scala-eead6482221f109f18c9c8f1b94d6666e7959426.tar.gz scala-eead6482221f109f18c9c8f1b94d6666e7959426.tar.bz2 scala-eead6482221f109f18c9c8f1b94d6666e7959426.zip |
Being deprecated is no reason to count from -1:...
Being deprecated is no reason to count from -1: bug #1597
Diffstat (limited to 'src/library')
-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 } |