Update scala.html.markdown

Removed typo (unnecessary double quote in patternFunc)
This commit is contained in:
Ikrom 2015-01-29 09:03:36 +05:00
parent b3cd2ae903
commit 73025e65c3

View File

@ -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"
}