Skip to content

Commit 0b310c0

Browse files
authored
Merge pull request #976 from chaokunyang/master
fix out-of-order: def foldLeft[B](z: B)(op: (A,B) => B): B
2 parents 138d667 + 66ddd05 commit 0b310c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_style/declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ There are three main reasons you should do this:
207207
type inferencer can allow a simpler syntax when invoking the
208208
remaining parameter lists. Consider fold:
209209

210-
def foldLeft[B](z: B)(op: (A,B) => B): B
210+
def foldLeft[B](z: B)(op: (B, A) => B): B
211211
List("").foldLeft(0)(_ + _.length)
212212

213213
// If, instead:

0 commit comments

Comments
 (0)