summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-05-28 12:44:31 +0200
committerAraq <rumpf_a@web.de>2015-05-28 12:44:31 +0200
commit5824be8e8c1670b5da6b7cf10b817392a8f113be (patch)
treeebcef66c6d7b37596d86f12a9c6bb2f4c59b9f5f /doc
parent94f54700c4bfcc04966e0ea011960c5432b29092 (diff)
downloadNim-5824be8e8c1670b5da6b7cf10b817392a8f113be.tar.gz
minor tut1 update
Diffstat (limited to 'doc')
-rw-r--r--doc/tut1.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tut1.txt b/doc/tut1.txt
index 58ace1dbe..fef4cb438 100644
--- a/doc/tut1.txt
+++ b/doc/tut1.txt
@@ -1325,11 +1325,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.