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.
2 parents 5a7b431 + 1ed6277 commit 27a4d87Copy full SHA for 27a4d87
_overviews/scala-book/match-expressions.md
@@ -226,8 +226,8 @@ Here are a few other examples of how you can use `if` expressions in `case` stat
226
```scala
227
i match {
228
case a if 0 to 9 contains a => println("0-9 range: " + a)
229
- case b if 10 to 19 contains b => println("10-19 range: " + a)
230
- case c if 20 to 29 contains c => println("20-29 range: " + a)
+ case b if 10 to 19 contains b => println("10-19 range: " + b)
+ case c if 20 to 29 contains c => println("20-29 range: " + c)
231
case _ => println("Hmmm...")
232
}
233
```
0 commit comments