summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2015-01-28 21:08:18 -0700
committerGeoff Liu <cangming.liu@gmail.com>2015-01-28 21:08:18 -0700
commit13c90fce6d42999d2dfdcf3503c41cdf65e36e87 (patch)
tree54322d8c90db6d5d5a28b5156ffdf9e379999f00
parentb3cd2ae903a300214e387a03d2a06bc05529850f (diff)
parent73025e65c3f0729ae68c8967b6382de2fedbb13f (diff)
Merge pull request #943 from ikr0m/patch-1
Update 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 61c735e3..ed1ddabb 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -453,7 +453,7 @@ def matchEverything(obj: Any): String = obj match {
// feature is so powerful that Scala lets you define whole functions as
// patterns:
val patternFunc: Person => String = {
- case Person("George", number") => s"George's number: $number"
+ case Person("George", number) => s"George's number: $number"
case Person(name, number) => s"Random person's number: $number"
}