]> granicus.if.org Git - jq/commitdiff
Fix examples in manual 651/head
authorEiichi Sato <sato.eiichi@gmail.com>
Sat, 20 Dec 2014 18:22:38 +0000 (03:22 +0900)
committerEiichi Sato <sato.eiichi@gmail.com>
Sat, 20 Dec 2014 18:26:04 +0000 (03:26 +0900)
docs/content/3.manual/manual.yml

index 4ff730b99f3fb6956a116c577a12a3ff837be925..07db3a442b54bc246354f34187ff35f49c9941d5 100644 (file)
@@ -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,