Skip to content

Commit 35c8581

Browse files
author
qilab gamma
committed
rename argument f of LinearSeqOptimized.reduceLeft to op in accordance with scaladoc
1 parent 8df55dc commit 35c8581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/scala/collection/LinearSeqOptimized.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ trait LinearSeqOptimized[+A, +Repr <: LinearSeqOptimized[A, Repr]] extends Linea
133133
else op(head, tail.foldRight(z)(op))
134134

135135
override /*TraversableLike*/
136-
def reduceLeft[B >: A](f: (B, A) => B): B =
136+
def reduceLeft[B >: A](op: (B, A) => B): B =
137137
if (isEmpty) throw new UnsupportedOperationException("empty.reduceLeft")
138-
else tail.foldLeft[B](head)(f)
138+
else tail.foldLeft[B](head)(op)
139139

140140
override /*IterableLike*/
141141
def reduceRight[B >: A](op: (A, B) => B): B =

0 commit comments

Comments
 (0)