1
0
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:
itchyny
2023-06-07 21:04:54 +09:00
parent e066172aa1
commit fd9da6647c

View File

@@ -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: |