Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c52e4b4

Browse files
committedJun 14, 2022
Squeeze out a few more words per review
1 parent 4220917 commit c52e4b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎_overviews/scala3-book/control-structures.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ i match
400400
case N => println("42")
401401
case n => println(s"You gave me: $n" )
402402
```
403+
If `i` is equal to `42`, then `case N` will match, and it will print the string `"42"`. It won't reach the default case.
403404

404405
### Handling multiple possible matches on one line
405406

0 commit comments

Comments
 (0)
Please sign in to comment.