Skip to content

Commit 58fc63d

Browse files
authored
Merge pull request scala/scala#10429 from som-snytt/tweak/iterator-test
IteratorTest mustn't use spent iterator after terminal op
2 parents 758188c + 7bb1f21 commit 58fc63d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/immutable/Range.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,6 @@ private class RangeIterator(
667667
_hasNext = longPos >= lastElement
668668
}
669669
}
670-
this
670+
this
671671
}
672672
}

0 commit comments

Comments
 (0)