Skip to content

Commit

Permalink
Simplify pick example
Browse files Browse the repository at this point in the history
Old pick example included input array in command line, making `input` confusing
and redundant.
  • Loading branch information
Thomas Bozeman th026106 authored and emanuele6 committed Oct 3, 2023
1 parent 6b5a18f commit 7f54782
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/content/manual/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]']

Expand Down
2 changes: 1 addition & 1 deletion docs/content/manual/v1.7/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]"]

Expand Down
4 changes: 2 additions & 2 deletions jq.1.prebuilt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/man.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f54782

Please sign in to comment.