From 2b800c67eae1f3bbfb193e3488cba3e05f6b4703 Mon Sep 17 00:00:00 2001 From: Brian Takashi Hooper Date: Thu, 24 Mar 2016 21:47:53 +0900 Subject: [PATCH] Update declarations.md Fixed a few typos. --- style/declarations.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style/declarations.md b/style/declarations.md index edfaf3d13c..7f5825ed5e 100644 --- a/style/declarations.md +++ b/style/declarations.md @@ -26,10 +26,10 @@ put each constructor argument on its own line, indented **four** spaces: } If a class/object/trait extends anything, the same general rule applies, -put it one one line unless it goes over about 100 characters, and then +put it on one line unless it goes over about 100 characters, and then indent **four** spaces with each item being on its own line and **two** spaces for extensions; this provides visual separation between -constructor arguments and extensions.: +constructor arguments and extensions: class Person( name: String, @@ -212,7 +212,7 @@ There are three main reasons you should do this: List("").foldLeft[Int](0, _ + _.length) For complex DSLs, or with type-names that are long, it can be difficult -to fit the entire signature on one line. In those cases, alight the +to fit the entire signature on one line. In those cases, align the open-paren of the parameter lists, one list per line (i.e. if you can't put them all on one line, put one each per line):