mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
docs: Fix example outputs added in #2391
This commit is contained in:
@@ -3186,11 +3186,11 @@ sections:
|
||||
examples:
|
||||
- program: .a = .b
|
||||
input: '{"a": {"b": 10}, "b": 20}'
|
||||
output: '{"a":20,"b":20}'
|
||||
output: ['{"a":20,"b":20}']
|
||||
|
||||
- program: .a |= .b
|
||||
input: '{"a": {"b": 10}, "b": 20}'
|
||||
output: '{"a":10,"b":20}'
|
||||
output: ['{"a":10,"b":20}']
|
||||
|
||||
- program: (.a, .b) = range(3)
|
||||
input: 'null'
|
||||
@@ -3201,7 +3201,7 @@ sections:
|
||||
|
||||
- program: (.a, .b) |= range(3)
|
||||
input: 'null'
|
||||
output: '{"a":0,"b":0}'
|
||||
output: ['{"a":0,"b":0}']
|
||||
|
||||
- title: Complex assignments
|
||||
body: |
|
||||
|
||||
Reference in New Issue
Block a user