Skip to content

Commit 373e475

Browse files
authored
Fix example code
1 parent f6e057c commit 373e475

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)