From 1157ea776e88fa956e1e524813ab22a9c4e46ca0 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 17 Jan 2016 19:49:25 -0800 Subject: 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. --- txr.1 | 6 +++--- 1 file 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") -- cgit v1.2.3