Fix docs for split/0

This commit is contained in:
Nicolas Williams committed 2015-01-12 10:47:43 -06:00
1 parent 60d1ecb58a
commit d630597e87
1 file changed
+3 -8
+3 -8
View File
@@ -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)'