diff options
author | Thomas Bozeman th026106 <thomas.bozeman@digitalglobe.com> | 2023-10-03 17:50:08 +0000 |
---|---|---|
committer | Emanuele Torre <torreemanuele6@gmail.com> | 2023-10-03 22:48:12 +0200 |
commit | 7f547827e47b5ade563a293329deb4226496d72f (patch) | |
tree | 7918c86308a5d0caffc97b76a7a120e3023b37cd /docs | |
parent | 6b5a18f0369eb765c1c9542cc886d389dac66c50 (diff) |
Simplify `pick` example
Old pick example included input array in command line, making `input` confusing
and redundant.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/manual/manual.yml | 2 | ||||
-rw-r--r-- | docs/content/manual/v1.7/manual.yml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index 6ce8233c..242cf510 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -1065,7 +1065,7 @@ sections: input: '{"a": 1, "b": {"c": 2, "d": 3}, "e": 4}' output: ['{"a":1,"b":{"c":2},"x":null}'] - - program: '[1,2,3,4] | pick(.[2], .[0], .[0])' + - program: 'pick(.[2], .[0], .[0])' input: '[1,2,3,4]' output: ['[1,null,3]'] diff --git a/docs/content/manual/v1.7/manual.yml b/docs/content/manual/v1.7/manual.yml index f8d9dd29..11e59e1b 100644 --- a/docs/content/manual/v1.7/manual.yml +++ b/docs/content/manual/v1.7/manual.yml @@ -1062,7 +1062,7 @@ sections: input: '{"a": 1, "b": {"c": 2, "d": 3}, "e": 4}' output: ['{"a":1,"b":{"c":2},"x":null}'] - - program: "[1,2,3,4] | pick(.[2], .[0], .[0])" + - program: "pick(.[2], .[0], .[0])" input: "[1,2,3,4]" output: ["[1,null,3]"] |