Skip to content

Commit 83b4cb2

Browse files
author
Martijn Hoekstra
committed
fix return type in docs
1 parent e9c5346 commit 83b4cb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/src/scala/collection/Iterator.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,13 @@ trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Ite
341341
*
342342
* Example usages:
343343
* {{{
344-
* // Returns List(List(1, 2, 3), List(2, 3, 4), List(3, 4, 5))
344+
* // Returns List(ArraySeq(1, 2, 3), ArraySeq(2, 3, 4), ArraySeq(3, 4, 5))
345345
* (1 to 5).iterator.sliding(3).toList
346-
* // Returns List(List(1, 2, 3, 4), List(4, 5))
346+
* // Returns List(ArraySeq(1, 2, 3, 4), ArraySeq(4, 5))
347347
* (1 to 5).iterator.sliding(4, 3).toList
348-
* // Returns List(List(1, 2, 3, 4))
348+
* // Returns List(ArraySeq(1, 2, 3, 4))
349349
* (1 to 5).iterator.sliding(4, 3).withPartial(false).toList
350-
* // Returns List(List(1, 2, 3, 4), List(4, 5, 20, 25))
350+
* // Returns List(ArraySeq(1, 2, 3, 4), ArraySeq(4, 5, 20, 25))
351351
* // Illustrating that withPadding's argument is by-name.
352352
* val it2 = Iterator.iterate(20)(_ + 5)
353353
* (1 to 5).iterator.sliding(4, 3).withPadding(it2.next).toList

0 commit comments

Comments
 (0)