From ddbcbab3e7df7d90086ff0c7d0a76a851dddbb87 Mon Sep 17 00:00:00 2001 From: Markus Engelbrecht Date: Fri, 15 May 2015 18:39:56 +0200 Subject: use new syntax for negative slicing --- doc/tut1.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0