Skip to content

Commit ad91afc

Browse files
committed
Use List.fill instead of range
1 parent 395cc6a commit ad91afc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/src/scala/collection/Factory.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ trait IterableFactory[+CC[_]] extends Serializable {
146146
def newBuilder[A]: Builder[A, CC[A]]
147147

148148
/** Produces a $coll containing the results of some element computation a number of times.
149-
* @param n the number of elements contained in the $coll.
150-
* @param elem the element computation
151-
* @return A $coll that contains the results of `n` evaluations of `elem`.
152-
*/
149+
* @param n the number of elements contained in the $coll.
150+
* @param elem the element computation
151+
* @return A $coll that contains the results of `n` evaluations of `elem`.
152+
*/
153153
def fill[A](n: Int)(elem: => A): CC[A] = from(new View.Fill(n)(elem))
154154

155155
/** Produces a two-dimensional $coll containing the results of some element computation a number of times.

0 commit comments

Comments
 (0)