Skip to content

Commit

Permalink
Chained methods can fit on one line too. [closes #276]
Browse files Browse the repository at this point in the history
Unless you need multi-line...
  • Loading branch information
betehess committed May 28, 2015
1 parent 652287b commit a699c87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -52,6 +52,8 @@ class Foo[Rdf <: RDF](
???
}

list.filter(! _.isEmpty).map(s => s.toString.toUppercase).flatMap { s => ??? }

// that's an inline comment helpful when reading the code
// there could be several lines too!
// TODO no really, do it some day
Expand Down

0 comments on commit a699c87

Please sign in to comment.