Skip to content

Even more section literally doubles chapters Summary #2345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fixed num => code
  • Loading branch information
ac2epsilon committed Mar 14, 2022
commit f0126ac1b9d8ca55cfc00f4d8de88857348bf306
4 changes: 2 additions & 2 deletions _overviews/scala3-book/control-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ When you need to access the catch-all, default value in a `match` expression, ju
```scala
val i = 4

val num = i match
val code = i match
case 0 => "00"
case 1 => "01"
case what => s"You gave me: $what"

println(num)
println(code)
```

In this example the variable is named `what` to show that it can be given any legal name.
Expand Down