summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authora.vandijk <anton.van.dijk@live.nl>2014-08-08 15:23:46 +0200
committera.vandijk <anton.van.dijk@live.nl>2014-08-15 15:56:55 +0200
commit07b6229ee608ae37283a827112b5eab4c58a5333 (patch)
treee5f08bfe86ee035e66bbb7f716d0c91ab4e00fd4
parent3cb8d2bcc56332a814d0ae69492782ee4ddbd473 (diff)
[CHANGE] Comment match on serial key now mentions verbatim (multiline)
-rw-r--r--scala.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/scala.html.markdown b/scala.html.markdown
index 4dc87a94..619c8aae 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -322,7 +322,7 @@ kate match { case Person("Kate", _) => "Girl"; case Person("George", _) => "Boy"
// Regular expressions
val email = "(.*)@(.*)".r // Invoking r on String makes it a Regex
-val serialKey = """(\d{5})-(\d{5})-(\d{5})-(\d{5})""".r // Using multiline string syntax
+val serialKey = """(\d{5})-(\d{5})-(\d{5})-(\d{5})""".r // Using verbatim (multiline) syntax
val matcher = (value: String) => {
println(value match {