diff --git a/docs/docs/reference/changed-features/match-syntax.md b/docs/docs/reference/changed-features/match-syntax.md index 6841d922dbd1..e83f5f9ead86 100644 --- a/docs/docs/reference/changed-features/match-syntax.md +++ b/docs/docs/reference/changed-features/match-syntax.md @@ -20,11 +20,10 @@ The syntactical precedence of match expressions has been changed. 2. `match` may follow a period: ```scala - if xsDefined - && xs.match { - case Nil => false - case _ => true - } + if xs.match { + case Nil => false + case _ => true + } then "nonempty" else "empty"