diff options
author | Joseph Poirier <jdpoirier@gmail.com> | 2015-01-02 21:47:09 -0600 |
---|---|---|
committer | Joseph Poirier <jdpoirier@gmail.com> | 2015-01-02 21:47:09 -0600 |
commit | efe183861cc8416872e6c1a44f642e6b03049616 (patch) | |
tree | 84fb6bbc5a4f81c1055db9d98492c133886fc846 /doc | |
parent | d15d9f41110a245b2b5a13bd8a882eeb79311acd (diff) | |
parent | 8f82205d12c7546b7369505b54d0157b4909fe6d (diff) | |
download | Nim-efe183861cc8416872e6c1a44f642e6b03049616.tar.gz |
Merge remote-tracking branch 'upstream/devel' into devel
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tut1.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tut1.txt b/doc/tut1.txt index 4c32fa0ae..5901dd02a 100644 --- a/doc/tut1.txt +++ b/doc/tut1.txt @@ -1070,7 +1070,7 @@ Operation Comment ``dec(x, n)`` decrements `x` by `n`; `n` is an integer ``succ(x)`` returns the successor of `x` ``succ(x, n)`` returns the `n`'th successor of `x` -``prec(x)`` returns the predecessor of `x` +``pred(x)`` returns the predecessor of `x` ``pred(x, n)`` returns the `n`'th predecessor of `x` ----------------- -------------------------------------------------------- @@ -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.' |