8000 Update declarations.md · asgs/scala.github.com@2b800c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b800c6

Browse files
committed
Update declarations.md
Fixed a few typos.
1 parent c2c154c commit 2b800c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

style/declarations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ put each constructor argument on its own line, indented **four** spaces:
2626
}
2727

2828
If a class/object/trait extends anything, the same general rule applies,
29-
put it one one line unless it goes over about 100 characters, and then
29+
put it on one line unless it goes over about 100 characters, and then
3030
indent **four** spaces wit 8000 h each item being on its own line and **two**
3131
spaces for extensions; this provides visual separation between
32-
constructor arguments and extensions.:
32+
constructor arguments and extensions:
3333

3434
class Person(
3535
name: String,
@@ -212,7 +212,7 @@ There are three main reasons you should do this:
212212
List("").foldLeft[Int](0, _ + _.length)
213213

214214
For complex DSLs, or with type-names that are long, it can be difficult
215-
to fit the entire signature on one line. In those cases, alight the
215+
to fit the entire signature on one line. In those cases, align the
216216
open-paren of the parameter lists, one list per line (i.e. if you can't
217217
put them all on one line, put one each per line):
218218

0 commit comments

Comments
 (0)
0