Better wording about breaks in cases

This commit is contained in:
Geoff Liu 2015-01-11 18:11:06 -07:00
parent 8f29b15cda
commit c053f1559b

View File

@ -409,7 +409,7 @@ val otherGeorge = george.copy(phoneNumber = "9876")
// Pattern matching is a powerful and commonly used feature in Scala. Here's how
// you pattern match a case class. NB: Unlike other languages, Scala cases do
// not have breaks.
// not need breaks, fall-through does not happen.
def matchPerson(person: Person): String = person match {
// Then you specify the patterns: