mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
Tutorial: Fixed slices example code.
This is likely a remainder of the name change from "Nimrod" to "Nim".
This commit is contained in:
@@ -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.'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user