diff options
author | Paul Phillips <paulp@improving.org> | 2009-08-22 13:49:46 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-08-22 13:49:46 +0000 |
commit | 0c424e878cf41d4d8f33b4e72339ca8f6f548fbc (patch) | |
tree | 989ac391b47d32ff606e6c6594f949656fca5aad /src/library | |
parent | 3be639c503bd677c0263c39af26c5ca42cf42635 (diff) | |
download | scala-0c424e878cf41d4d8f33b4e72339ca8f6f548fbc.tar.gz scala-0c424e878cf41d4d8f33b4e72339ca8f6f548fbc.tar.bz2 scala-0c424e878cf41d4d8f33b4e72339ca8f6f548fbc.zip |
Fixed #2283.
Diffstat (limited to 'src/library')
-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 ffcb6eda70..0a5f48d6ea 100644 --- a/src/library/scala/collection/Iterator.scala +++ b/src/library/scala/collection/Iterator.scala @@ -734,7 +734,7 @@ trait Iterator[+A] { self => * Typical uses can be achieved via methods `grouped' and `sliding'. */ class GroupedIterator[B >: A](self: Iterator[A], size: Int, step: Int) extends Iterator[Sequence[B]] { - require(size >= 1 && size >= 1) + require(size >= 1 && step >= 1) private[this] var buffer: ArrayBuffer[B] = ArrayBuffer() // the buffer private[this] var filled = false // whether the buffer is "hot" |