summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarkus Engelbrecht <github@enbre.com>2015-05-15 18:39:56 +0200
committerMarkus Engelbrecht <github@enbre.com>2015-05-15 18:39:56 +0200
commitddbcbab3e7df7d90086ff0c7d0a76a851dddbb87 (patch)
tree954113ed8ae6db1ccc354eebffc88d390919ff31
parentc30d7c3208c1da91e3f71be7d8d9f5149f3031c4 (diff)
downloadNim-ddbcbab3e7df7d90086ff0c7d0a76a851dddbb87.tar.gz
use new syntax for negative slicing
-rw-r--r--doc/tut1.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tut1.txt b/doc/tut1.txt
index 58ace1dbe..cf27ac788 100644
--- a/doc/tut1.txt
+++ b/doc/tut1.txt
@@ -1325,7 +1325,7 @@ 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