8000
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 9b9785a commit 5aa15c6Copy full SHA for 5aa15c6
_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 curly braces:
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