Skip to content

Commit bedc4f7

Browse files
Merge pull request #8426 from takayahilton/patch-1
Fix example code
2 parents 7fd5d68 + 373e475 commit bedc4f7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/docs/reference/changed-features/match-syntax.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ The syntactical precedence of match expressions has been changed.
2020
2. `match` may follow a period:
2121

2222
```scala
23-
if xsDefined
24-
&& xs.match {
25-
case Nil => false
26-
case _ => true
27-
}
23+
if xs.match {
24+
case Nil => false
25+
case _ => true
26+
}
2827
then "nonempty"
2928
else "empty"
3029

0 commit comments

Comments
 (0)