We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e90841 commit 9b9785aCopy full SHA for 9b9785a
_overviews/scala-book/match-expressions.md
@@ -202,17 +202,17 @@ count match {
202
}
203
```
204
205
-Here’s a variation of that example that uses parentheses
+Here’s a variation of that example that uses parentheses:
206
207
```scala
208
count match {
209
case 1 => {
210
println("one, a lonely number")
211
212
- case x if x == 2 || x == 3 => {
+ case x if (x == 2 || x == 3) => {
213
println("two's company, three's a crowd")
214
215
- case x if x > 3 => {
+ case x if (x > 3) => {
216
println("4+, that's a party")
217
218
case _ => {
0 commit comments