fix small typo in the documentation (#7411)
This commit is contained in:
parent
1d9343080d
commit
23064bba3a
1 changed files with 2 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ the variable has been initialized and does not rely on syntactic properties:
|
||||||
x = a()
|
x = a()
|
||||||
else:
|
else:
|
||||||
x = a()
|
x = a()
|
||||||
use x
|
# use x
|
||||||
|
|
||||||
|
|
||||||
let statement
|
let statement
|
||||||
|
|
@ -296,7 +296,7 @@ empty ``discard`` statement should be used.
|
||||||
For non ordinal types it is not possible to list every possible value and so
|
For non ordinal types it is not possible to list every possible value and so
|
||||||
these always require an ``else`` part.
|
these always require an ``else`` part.
|
||||||
|
|
||||||
As case statements perform compile-time exhaustiveness checks, the value in
|
As case statements perform compile-time exhaustiveness checks, the value in
|
||||||
every ``of`` branch must be known at compile time. This fact is also exploited
|
every ``of`` branch must be known at compile time. This fact is also exploited
|
||||||
to generate more performant code.
|
to generate more performant code.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue