summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/IterableLike.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-09-03 04:16:07 +0000
committerPaul Phillips <paulp@improving.org>2011-09-03 04:16:07 +0000
commit6817244d64fca81810e6e45f8a4ea53e9e6d76c2 (patch)
tree94d39491db9d7c68ef9f20238ac7b327dd96b871 /src/library/scala/collection/IterableLike.scala
parent13f30c385b442eb702d257c707e722963391f513 (diff)
downloadscala-6817244d64fca81810e6e45f8a4ea53e9e6d76c2.tar.gz
scala-6817244d64fca81810e6e45f8a4ea53e9e6d76c2.tar.bz2
scala-6817244d64fca81810e6e45f8a4ea53e9e6d76c2.zip
Removed the type parameter from sliding, no rev...
Removed the type parameter from sliding, no review.
Diffstat (limited to 'src/library/scala/collection/IterableLike.scala')
-rw-r--r--src/library/scala/collection/IterableLike.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/IterableLike.scala b/src/library/scala/collection/IterableLike.scala
index e5aa381c9f..4b0c5662d8 100644
--- a/src/library/scala/collection/IterableLike.scala
+++ b/src/library/scala/collection/IterableLike.scala
@@ -172,8 +172,8 @@ self =>
* 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] =
+ def sliding(size: Int): Iterator[Repr] = sliding(size, 1)
+ def sliding(size: Int, step: Int): Iterator[Repr] =
for (xs <- iterator.sliding(size, step)) yield {
val b = newBuilder
b ++= xs