Permalink
Browse files

slice method is deprecated, using exSlice instead

  • Loading branch information...
1 parent 20646ae commit d3d3adaa6bab852bf4da2606cc6ae05868de624d @kurmanka kurmanka committed Jul 23, 2012
Showing with 6 additions and 6 deletions.
  1. +4 −4 docs/IoGuide.html
  2. +2 −2 docs/IoTutorial.html
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:
@@ -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>

0 comments on commit d3d3ada

Please sign in to comment.