From fa72cb3249bd3e300e475dfd7210c7833347f491 Mon Sep 17 00:00:00 2001 From: Michel Charpentier Date: Wed, 2 Oct 2024 11:38:48 -0400 Subject: [PATCH] Fix documentation in Iterable.scala The documentation for zipAll is incorrect, e.g., List(1, 2, 3).zipAll(Set("x"), 0, "") produces a list, not a set. --- scala2-library-bootstrapped/src/scala/collection/Iterable.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scala2-library-bootstrapped/src/scala/collection/Iterable.scala b/scala2-library-bootstrapped/src/scala/collection/Iterable.scala index 8f9142583b29..4a7a0129a9ce 100644 --- a/scala2-library-bootstrapped/src/scala/collection/Iterable.scala +++ b/scala2-library-bootstrapped/src/scala/collection/Iterable.scala @@ -756,7 +756,7 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable * @param that the iterable providing the second half of each result pair * @param thisElem the element to be used to fill up the result if this $coll is shorter than `that`. * @param thatElem the element to be used to fill up the result if `that` is shorter than this $coll. - * @return a new collection of type `That` containing pairs consisting of + * @return a new collection of the type of this $coll containing pairs consisting of * corresponding elements of this $coll and `that`. The length * of the returned collection is the maximum of the lengths of this $coll and `that`. * If this $coll is shorter than `that`, `thisElem` values are used to pad the result.