From 5824be8e8c1670b5da6b7cf10b817392a8f113be Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 28 May 2015 12:44:31 +0200 Subject: [PATCH] minor tut1 update --- doc/tut1.txt | 6 +++--- 1 file 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.