diff options
author | Abhishek <cabhishek@gmail.com> | 2018-03-26 00:48:39 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-03-26 09:48:39 +0200 |
commit | 23064bba3a711d3f6bddfb8568c0d1732acdffb2 (patch) | |
tree | e3ef0fbc6d45ffcfdf425275b474bcfe4a8c3b2e /doc/manual/stmts.txt | |
parent | 1d9343080de8e19835c3f6568630ba759afbb94f (diff) | |
download | Nim-23064bba3a711d3f6bddfb8568c0d1732acdffb2.tar.gz |
fix small typo in the documentation (#7411)
Diffstat (limited to 'doc/manual/stmts.txt')
-rw-r--r-- | doc/manual/stmts.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/stmts.txt b/doc/manual/stmts.txt index 721b5cff8..14d272cee 100644 --- a/doc/manual/stmts.txt +++ b/doc/manual/stmts.txt @@ -145,7 +145,7 @@ the variable has been initialized and does not rely on syntactic properties: x = a() else: x = a() - use x + # use x 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 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 to generate more performant code. |