From 73025e65c3f0729ae68c8967b6382de2fedbb13f Mon Sep 17 00:00:00 2001 From: Ikrom Date: Thu, 29 Jan 2015 09:03:36 +0500 Subject: [PATCH] Update scala.html.markdown Removed typo (unnecessary double quote in patternFunc) --- scala.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }