Skip to content

Commit 861e6ff

Browse files
authored
Fix documentation in Iterable.scala (#21692)
The documentation for `zipAll` is incorrect, e.g., `List(1, 2, 3).zipAll(Set("x"), 0, "")` produces a list, not a set.
2 parents c332766 + fa72cb3 commit 861e6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scala2-library-bootstrapped/src/scala/collection/Iterable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
756756
* @param that the iterable providing the second half of each result pair
757757
* @param thisElem the element to be used to fill up the result if this $coll is shorter than `that`.
758758
* @param thatElem the element to be used to fill up the result if `that` is shorter than this $coll.
759-
* @return a new collection of type `That` containing pairs consisting of
759+
* @return a new collection of the type of this $coll containing pairs consisting of
760760
* corresponding elements of this $coll and `that`. The length
761761
* of the returned collection is the maximum of the lengths of this $coll and `that`.
762762
* If this $coll is shorter than `that`, `thisElem` values are used to pad the result.

0 commit comments

Comments
 (0)