summaryrefslogtreecommitdiffhomepage
path: root/scala.html.markdown
diff options
context:
space:
mode:
authorGeoff Liu <g@geoffliu.me>2015-01-11 18:11:06 -0700
committerGeoff Liu <g@geoffliu.me>2015-01-11 18:11:06 -0700
commitc053f1559bb357d9e8ced2452096bf3a95cc7ddb (patch)
treee712699ccd2b17ce3e3c94054a061fe53d22804f /scala.html.markdown
parent8f29b15cda9cbc7ca8fc1f31ed0755245c9fc9c7 (diff)
Better wording about breaks in cases
Diffstat (limited to 'scala.html.markdown')
-rw-r--r--scala.html.markdown2
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: