diff options
author | reactormonk <hafnersimon@gmail.com> | 2015-01-03 04:42:57 +0500 |
---|---|---|
committer | reactormonk <hafnersimon@gmail.com> | 2015-01-03 04:42:57 +0500 |
commit | 8f82205d12c7546b7369505b54d0157b4909fe6d (patch) | |
tree | 3ac3baed7a315ca322a11e00ff6ec4793318d29d | |
parent | 606688e059a5c6a5468890199d451fc8aabc70c8 (diff) | |
parent | 66c05e56d8a7d6dfadd8baa85c6d882bb2d670da (diff) | |
download | Nim-8f82205d12c7546b7369505b54d0157b4909fe6d.tar.gz |
Merge pull request #1831 from homeworkprod/patch-1
Tutorial: Fixed slices example code.
-rw-r--r-- | doc/tut1.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tut1.txt b/doc/tut1.txt index 324a38b0a..5901dd02a 100644 --- a/doc/tut1.txt +++ b/doc/tut1.txt @@ -1323,7 +1323,7 @@ define operators which accept TSlice objects to define ranges. a = "Nim is a progamming language" b = "Slices are useless." - echo a[10..15] # --> 'a prog' + echo a[7..12] # --> 'a prog' b[11.. -2] = "useful" echo b # --> 'Slices are useful.' |