diff options
author | Mark Henderson <markhend@gmail.com> | 2013-11-03 13:01:21 -0600 |
---|---|---|
committer | Mark Henderson <markhend@gmail.com> | 2013-11-03 13:01:21 -0600 |
commit | 7b1ebe896c80e966110d93a3fb1a9fc95be4f4b1 (patch) | |
tree | 005ff4b159b1f1a48505cffc9cef353800b63d63 /doc | |
parent | 993cdb82b6acdb10ee8d8eeb80550be536058300 (diff) | |
download | Nim-7b1ebe896c80e966110d93a3fb1a9fc95be4f4b1.tar.gz |
a few typos
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tut1.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tut1.txt b/doc/tut1.txt index 0cc9b05c1..5c1cdb52e 100644 --- a/doc/tut1.txt +++ b/doc/tut1.txt @@ -610,7 +610,7 @@ allow to silently throw away a return value: discard yes("May I ask a pointless question?") -The return value can be ignored implicitely if the called proc/iterator has +The return value can be ignored implicitly if the called proc/iterator has been declared with the ``discardable`` pragma: .. code-block:: nimrod @@ -1077,7 +1077,7 @@ can also be used to include elements (and ranges of elements): TCharSet = set[char] var x: TCharSet - x = {'a'..'z', '0'..'9'} # This constructs a set that conains the + x = {'a'..'z', '0'..'9'} # This constructs a set that contains the # letters from 'a' to 'z' and the digits # from '0' to '9' @@ -1201,7 +1201,7 @@ to specify a range from zero to the specified index minus one: Sequences --------- `Sequences`:idx: are similar to arrays but of dynamic length which may change -during runtime (like strings). Since sequences are resizeable they are always +during runtime (like strings). Since sequences are resizable they are always allocated on the heap and garbage collected. Sequences are always indexed with an ``int`` starting at position 0. @@ -1547,7 +1547,7 @@ exported symbols. An alternative that only imports listed symbols is the Include statement ----------------- -The `include`:idx: statement does something fundametally different than +The `include`:idx: statement does something fundamentally different than importing a module: it merely includes the contents of a file. The ``include`` statement is useful to split up a large module into several files: |