diff options
Diffstat (limited to 'src/library/scala/collection/IterableLike.scala')
-rw-r--r-- | src/library/scala/collection/IterableLike.scala | 4 |
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 |