diff options
author | Adam Strzelecki <ono@java.pl> | 2015-09-04 23:10:48 +0200 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-09-04 23:10:48 +0200 |
commit | 0b44d812f10c6dbf7eb7cbf13ae0dc053bb2de9d (patch) | |
tree | 3ecdeaa24c4fd828d9408b68f5b4eb9b47171e77 /doc/manual/taint.txt | |
parent | 51488766e79a2ce21068b34ecd368c1344ce7cc1 (diff) | |
download | Nim-0b44d812f10c6dbf7eb7cbf13ae0dc053bb2de9d.tar.gz |
doc: Trim .txt files trailing whitespace
via OSX: find . -name '*.txt' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
Diffstat (limited to 'doc/manual/taint.txt')
-rw-r--r-- | doc/manual/taint.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/manual/taint.txt b/doc/manual/taint.txt index 84f0c68b1..492686f31 100644 --- a/doc/manual/taint.txt +++ b/doc/manual/taint.txt @@ -1,11 +1,11 @@ Taint mode ========== -The Nim compiler and most parts of the standard library support -a taint mode. Input strings are declared with the `TaintedString`:idx: +The Nim compiler and most parts of the standard library support +a taint mode. Input strings are declared with the `TaintedString`:idx: string type declared in the ``system`` module. -If the taint mode is turned on (via the ``--taintMode:on`` command line +If the taint mode is turned on (via the ``--taintMode:on`` command line option) it is a distinct string type which helps to detect input validation errors: @@ -13,7 +13,7 @@ validation errors: echo "your name: " var name: TaintedString = stdin.readline # it is safe here to output the name without any input validation, so - # we simply convert `name` to string to make the compiler happy: + # we simply convert `name` to string to make the compiler happy: echo "hi, ", name.string If the taint mode is turned off, ``TaintedString`` is simply an alias for |