diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-06-08 16:17:58 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-06-08 16:17:58 +0000 |
commit | 22ea4e87f72a8fb549811474ef38ed97aa17012a (patch) | |
tree | 54c5683a2da83fd02a39743819be1dcc11b68821 | |
parent | 905c3126ac81249f25a4a3f1e69c7532e7f3f1c9 (diff) | |
download | scala-22ea4e87f72a8fb549811474ef38ed97aa17012a.tar.gz scala-22ea4e87f72a8fb549811474ef38ed97aa17012a.tar.bz2 scala-22ea4e87f72a8fb549811474ef38ed97aa17012a.zip |
Fixes #3461. No review.p
-rw-r--r-- | src/library/scala/collection/IterableLike.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/collection/IterableLike.scala b/src/library/scala/collection/IterableLike.scala index ca149809b3..5ae4677f4e 100644 --- a/src/library/scala/collection/IterableLike.scala +++ b/src/library/scala/collection/IterableLike.scala @@ -158,7 +158,8 @@ self => * @param step the distance between the first elements of successive * groups (defaults to 1) * @return An iterator producing ${coll}s of size `size`, except the - * last will be truncated if the elements don't divide evenly. + * last and the only element will be truncated if there are + * fewer elements than size. */ def sliding[B >: A](size: Int): Iterator[Repr] = sliding(size, 1) def sliding[B >: A](size: Int, step: Int): Iterator[Repr] = |