diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/advopt.txt | 5 | ||||
-rw-r--r-- | doc/manual/types.txt | 2 | ||||
-rw-r--r-- | doc/tut1.txt | 6 |
3 files changed, 7 insertions, 6 deletions
diff --git a/doc/advopt.txt b/doc/advopt.txt index 04ffce5b5..18a5a527b 100644 --- a/doc/advopt.txt +++ b/doc/advopt.txt @@ -18,9 +18,10 @@ Advanced options: --stdout output to stdout --colors:on|off turn compiler messages coloring on|off --listFullPaths list full paths in messages - -w, --warnings:on|off turn all warnings on|off + -w:on|off|list, --warnings:on|off|list + turn all warnings on|off or list all available --warning[X]:on|off turn specific warning X on|off - --hints:on|off turn all hints on|off + --hints:on|off|list turn all hints on|off or list all available --hint[X]:on|off turn specific hint X on|off --lib:PATH set the system library path --import:PATH add an automatically imported module diff --git a/doc/manual/types.txt b/doc/manual/types.txt index 1d120c607..2eb034ba2 100644 --- a/doc/manual/types.txt +++ b/doc/manual/types.txt @@ -592,7 +592,7 @@ the ``of`` operator can be used to determine the object's type. .. code-block:: nim type - Person {.inheritable.} = object + Person = object of RootObj name*: string # the * means that `name` is accessible from other modules age: int # no * means that the field is hidden diff --git a/doc/tut1.txt b/doc/tut1.txt index 2dc2c1d86..34684a850 100644 --- a/doc/tut1.txt +++ b/doc/tut1.txt @@ -1334,11 +1334,11 @@ define operators which accept Slice objects to define ranges. b = "Slices are useless." echo a[7..12] # --> 'a prog' - b[11.. ^2] = "useful" + b[11..^2] = "useful" echo b # --> 'Slices are useful.' -In the previous example slices are used to modify a part of a string, and even -a negative index is used. The slice's bounds can hold any value supported by +In the previous example slices are used to modify a part of a string. The +slice's bounds can hold any value supported by their type, but it is the proc using the slice object which defines what values are accepted. |