From 66ddd05204728a8f252c219728ab6ccf91a35beb Mon Sep 17 00:00:00 2001 From: chaokunyang Date: Tue, 9 Jan 2018 10:52:54 +0800 Subject: [PATCH] fix out-of-order: def foldLeft[B](z: B)(op: (A,B) => B): B --- _style/declarations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_style/declarations.md b/_style/declarations.md index dea8ee8f47..f039b56595 100644 --- a/_style/declarations.md +++ b/_style/declarations.md @@ -207,7 +207,7 @@ There are three main reasons you should do this: type inferencer can allow a simpler syntax when invoking the remaining parameter lists. Consider fold: - def foldLeft[B](z: B)(op: (A,B) => B): B + def foldLeft[B](z: B)(op: (B, A) => B): B List("").foldLeft(0)(_ + _.length) // If, instead: