summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEiichi Sato <sato.eiichi@gmail.com>2014-12-21 03:22:38 +0900
committerEiichi Sato <sato.eiichi@gmail.com>2014-12-21 03:26:04 +0900
commita6656edc7c888c7ebb0ddfe791a7e325733eddd8 (patch)
tree022b0a955113066e0de3fec2f4d40b345684f52c
parentb4a9ea56ae8d84ef3b76e279f244676f7725d48e (diff)
Fix examples in manual
-rw-r--r--docs/content/3.manual/manual.yml13
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index 4ff730b9..07db3a44 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -1705,11 +1705,10 @@ sections:
examples:
- program: 'test("foo")'
input: '"foo"'
- output: 'true'
- - program: 'test("a b c # spaces are ignored"; "ix")'
- input: '"xabcd" "ABC"'
- output: true
- true
+ output: ['true']
+ - program: '.[] | test("a b c # spaces are ignored"; "ix")'
+ input: '["xabcd", "ABC"]'
+ output: ['true', 'true']
- title: "`match(val)`, `match(regex; flags)`"
body: |
@@ -1753,7 +1752,7 @@ sections:
- program: '[ match("."; "g")] | length'
input: '"abc"'
- output: 3
+ output: [3]
- title: "`capture(val)`, `capture(regex; flags)`"
@@ -1802,7 +1801,7 @@ sections:
output: ['"ab","cd","ef"']
- - title: "`splits(regex)`, splits(regex; flags)`"
+ - title: "`splits(regex)`, `splits(regex; flags)`"
body: |
These provide the same results as their `split` counterparts,