summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-01-17 19:49:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-01-17 19:49:25 -0800
commit1157ea776e88fa956e1e524813ab22a9c4e46ca0 (patch)
tree0f93e1e88a70e033b4bf01ff96d8be4cb6f72a7f /txr.1
parent4eca98b2703d71eec4f47e9b9300a825722bd1cc (diff)
downloadtxr-1157ea776e88fa956e1e524813ab22a9c4e46ca0.tar.gz
txr-1157ea776e88fa956e1e524813ab22a9c4e46ca0.tar.bz2
txr-1157ea776e88fa956e1e524813ab22a9c4e46ca0.zip
Fix incorrect split examples.
* txr.1: examples were calling split as if it were variadic, accepting multiple indices as separate arguments. This is not the case; a sequence of indices must be passed as one argument.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.16
1 files changed, 3 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 19f8f2f4..6df2f322 100644
--- a/txr.1
+++ b/txr.1
@@ -21971,10 +21971,10 @@ of one element.
(split "abc" 0) -> ("" "abc")
(split "abc" 3) -> ("abc" "")
(split "abc" 1) -> ("a" "bc")
- (split "abc" 0 1 2 3) -> ("" "a" "b" "c" "")
- (split "abc" 1 2) -> ("a" "b" "c")
+ (split "abc" '(0 1 2 3)) -> ("" "a" "b" "c" "")
+ (split "abc" '(1 2)) -> ("a" "b" "c")
- (split "abc" -1 1 2 15) -> ("a" "b" "c")
+ (split "abc" '(-1 1 2 15)) -> ("a" "b" "c")
;; triple split at makes two additional empty pieces
(split "abc" '(1 1 1)) -> ("a" "" "" "bc")