From d630597e870b9e1c14dfbc6a076f6f1c342b250f Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 12 Jan 2015 10:47:43 -0600 Subject: [PATCH] Fix docs for `split/0` --- docs/content/3.manual/manual.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index 2c0ef071..c57c2c4a 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -1297,8 +1297,8 @@ sections: examples: - program: 'split(", ")' - input: '"a, b,c,d, e"' - output: ['["a","b,c,d","e"]'] + input: '"a, b,c,d, e, "' + output: ['["a","b,c,d","e",""]'] - title: "`join(str)`" body: | @@ -1935,12 +1935,7 @@ sections: - title: "`split(regex; flags)`" body: | - For backwards compatibility, `split` emits an array of the strings - corresponding to the successive segments of the input string after it - has been split at the boundaries defined by the regex and any - specified flags. The substrings corresponding to the boundaries - themselves are excluded. If regex is the empty string, then the first - match will be the empty string. + For backwards compatibility, `split` splits on a string, not a regex. example: - program: 'split(", *"; null)'