Fix tutorial typo #222

Merged
merged 2 commits into from Jul 23, 2012
View
@@ -1869,14 +1869,14 @@
Slicing:
<pre>
-"Kirikuro" slice(0, 2)
+"Kirikuro" exSlice(0, 2)
==> "Ki"
-"Kirikuro" slice(-2) # NOT: slice(-2, 0)!
+"Kirikuro" exSlice(-2) # NOT: exSlice(-2, 0)!
==> "ro"
-Io> "Kirikuro" slice(0, -2)
-# "Kiriku"
+Io> "Kirikuro" exSlice(0, -2)
+==> "Kiriku"
</pre>
Stripping whitespace:
@@ -171,7 +171,7 @@
Io> d foreach(i, v, writeln(i, ": ", v))
0: 5
1: 123
-3: 20
+2: 20
Io> list("abc", "def", "ghi") foreach(println)
abc
@@ -212,10 +212,10 @@
Io> s findSeq("test")
==> 10
-Io> s slice(10)
+Io> s exSlice(10)
==> "test"
-Io> s slice(2, 10)
+Io> s exSlice(2, 10)
==> "is is a "
</PRE>
@@ -236,4 +236,4 @@
<br>
<br>
<br>
-<br>
+<br>