Skip to content

Commit

Permalink
Update scala.html.markdown
Browse files Browse the repository at this point in the history
Removed typo (unnecessary double quote in patternFunc)
  • Loading branch information
Ikrom committed Jan 29, 2015
1 parent b3cd2ae commit 73025e6
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 73025e6

Please sign in to comment.