]> granicus.if.org Git - jq/commitdiff
Fix doc typos (.[foo] wanted to be .["foo"])
authorNicolas Williams <nico@cryptonector.com>
Wed, 25 Dec 2013 23:09:27 +0000 (17:09 -0600)
committerNicolas Williams <nico@cryptonector.com>
Wed, 25 Dec 2013 23:09:27 +0000 (17:09 -0600)
docs/content/3.manual/manual.yml

index ef07fc47facda6129e5ced3b3b055258ea8b220c..b798320a6063e481e6936c4487106696d6cea32a 100644 (file)
@@ -205,11 +205,11 @@ sections:
           - program: '.foo'
             input: '{"notfoo": true, "alsonotfoo": false}'
             output: ['null']
-          - program: '."foo"'
+          - program: '.["foo"]'
             input: '{"foo": 42}'
             output: [42]
 
-      - title: "`.[foo]`, `.[2]`, `.[10:15]`"
+      - title: "`.[<string>]`, `.[2]`, `.[10:15]`"
         body: |
           
           You can also look up fields of an object using syntax like
@@ -254,7 +254,7 @@ sections:
       - title: "`.[]`"
         body: |
           
-          If you use the `.[foo]` syntax, but omit the index
+          If you use the `.[index]` syntax, but omit the index
           entirely, it will return *all* of the elements of an
           array. Running `.[]` with the input `[1,2,3]` will produce the
           numbers as three separate results, rather than as a single