Skip to content

Commit

Permalink
Merge pull request twitter#121 from looperhacks/master
Browse files Browse the repository at this point in the history
Remove unnecessary linebreaks
  • Loading branch information
lahosken committed Apr 7, 2014
2 parents 376f4ac + 8abedbc commit 0fcd891
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/basics2.textile
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,7 @@ times match {

Notice how we captured the value in the variable 'i'.

The <code>_</code> in the last case statement is a wildcard; it
ensures that we can handle any statement. Otherwise you will suffer a
runtime error if you pass in a number that doesn't match. We discuss
this more later.
The <code>_</code> in the last case statement is a wildcard; it ensures that we can handle any statement. Otherwise you will suffer a runtime error if you pass in a number that doesn't match. We discuss this more later.

*See Also* Effective Scala has opinions about <a href="http://twitter.github.com/effectivescala/#Functional programming-Pattern matching">when to use pattern matching</a> and <a href="http://twitter.github.com/effectivescala/#Formatting-Pattern matching">pattern matching formatting</a>. A Tour of Scala describes <a href="http://www.scala-lang.org/node/120">Pattern Matching</a>

Expand Down

0 comments on commit 0fcd891

Please sign in to comment.