Make statement clearer
This commit is contained in:
parent
4fe1376fce
commit
e253f79698
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ Another feature of case statements is that the possible values are narrowed, mea
|
||||||
|
|
||||||
``` nimrod
|
``` nimrod
|
||||||
let x = 2
|
let x = 2
|
||||||
case (x and 3) + 7:
|
case (x and 0b11) + 7:
|
||||||
of 7: echo "A"
|
of 7: echo "A"
|
||||||
of 8: echo "B"
|
of 8: echo "B"
|
||||||
of 9: echo "C"
|
of 9: echo "C"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue