Skip to content

Commit

Permalink
Merge pull request adambard#943 from ikr0m/patch-1
Browse files Browse the repository at this point in the history
Update scala.html.markdown
  • Loading branch information
geoffliu committed Jan 29, 2015
2 parents b3cd2ae + 73025e6 commit 13c90fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scala.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 13c90fc

Please sign in to comment.