Skip to content

Commit 3b91644

Browse files
author
Dean Wampler
committed
Added an explanatory comment
1 parent 80d2104 commit 3b91644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/scala/progscala3/patternmatching/MatchChaining.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// src/script/scala/progscala3/patternmatching/MatchChaining.scala
22

33
for opt <- Seq(Some(1), None)
4-
yield opt match {
4+
yield opt match { // Braces for clarity, but not required! Try removing them.
55
case None => ""
66
case Some(i) => i.toString
77
} match { // will match on the String from the previous match

0 commit comments

Comments
 (0)