diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2015-01-11 22:56:19 -0600 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2015-01-11 22:56:19 -0600 |
commit | 6fffdc56c0f1285e1fb949868807bfcc48787e33 (patch) | |
tree | e712699ccd2b17ce3e3c94054a061fe53d22804f | |
parent | 7c8db0b33eb356165fc02a08b7ed9c5d6984a7a1 (diff) | |
parent | c053f1559bb357d9e8ced2452096bf3a95cc7ddb (diff) |
Merge pull request #919 from geoffliu/master
[en/Scala] Better wording about breaks in cases
-rw-r--r-- | scala.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index 3fa4d4b8..61c735e3 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -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: |