Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix tutorial typo #222

merged 2 commits into from

2 participants


Very small IoTutorial.html and IoGuide.html fixes, including a fix for the now-deprecated slice method. (documenting exSlice instead.)

@stevedekorte stevedekorte merged commit 10badbd into stevedekorte:master

Thank you Ivan :)


You are welcome. That is my tiny 'thank you' for the awesome Io.

The other thing that needs to be fixed in the tutorial and the guide is how Io interpreter is shown to print literal string values. It is currently documented to print it in double quotes, while the current io version seems to do that without quotes. It is probably a minor issue, and one has to go through the whole content to fix it. I can create an issue for that, if that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 8 deletions.
  1. +4 −4 docs/IoGuide.html
  2. +4 −4 docs/IoTutorial.html
8 docs/IoGuide.html
@@ -1869,14 +1869,14 @@
-"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"
Stripping whitespace:
8 docs/IoTutorial.html
@@ -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)
@@ -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 "
@@ -236,4 +236,4 @@
Something went wrong with that request. Please try again.