Fix examples in 1.4 manual
This commit is contained in:
1 parent
b5f8cb2126
commit
a12b9102c7
1 file changed
+5
-5
@@ -626,10 +626,10 @@ sections:
|
|||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: 'del(.foo)'
|
- program: 'del(.foo)'
|
||||||
input: '[{"foo": 42, "bar": 9001, "baz": 42}]'
|
input: '{"foo": 42, "bar": 9001, "baz": 42}'
|
||||||
output: ['{"bar": 9001, "baz": 42}']
|
output: ['{"bar": 9001, "baz": 42}']
|
||||||
- program: 'del(.[1, 2])'
|
- program: 'del(.[1, 2])'
|
||||||
input: '[["foo", "bar", "baz"]]'
|
input: '["foo", "bar", "baz"]'
|
||||||
output: ['["foo"]']
|
output: ['["foo"]']
|
||||||
|
|
||||||
- title: "`to_entries`, `from_entries`, `with_entries`"
|
- title: "`to_entries`, `from_entries`, `with_entries`"
|
||||||
@@ -967,7 +967,7 @@ sections:
|
|||||||
output: ['[{"foo": 1, "bar": 2}, {"foo": 4, "bar": 5}]']
|
output: ['[{"foo": 1, "bar": 2}, {"foo": 4, "bar": 5}]']
|
||||||
- program: 'unique_by(length)'
|
- program: 'unique_by(length)'
|
||||||
input: '["chunky", "bacon", "kitten", "cicada", "asparagus"]'
|
input: '["chunky", "bacon", "kitten", "cicada", "asparagus"]'
|
||||||
output: ['["chunky", "bacon", "asparagus"]']
|
output: ['["bacon", "chunky", "asparagus"]']
|
||||||
|
|
||||||
|
|
||||||
- title: "`reverse`"
|
- title: "`reverse`"
|
||||||
@@ -1038,7 +1038,7 @@ sections:
|
|||||||
- program: 'index(", ")'
|
- program: 'index(", ")'
|
||||||
input: '"a,b, cd, efg, hijk"'
|
input: '"a,b, cd, efg, hijk"'
|
||||||
output: ['3']
|
output: ['3']
|
||||||
- program: 'rindex(", ")]'
|
- program: 'rindex(", ")'
|
||||||
input: '"a,b, cd, efg, hijk"'
|
input: '"a,b, cd, efg, hijk"'
|
||||||
output: ['12']
|
output: ['12']
|
||||||
|
|
||||||
@@ -1060,7 +1060,7 @@ sections:
|
|||||||
examples:
|
examples:
|
||||||
- program: '[.[]|endswith("foo")]'
|
- program: '[.[]|endswith("foo")]'
|
||||||
input: '["foobar", "barfoo"]'
|
input: '["foobar", "barfoo"]'
|
||||||
output: ['[false, true, true, false, false]']
|
output: ['[false, true]']
|
||||||
|
|
||||||
- title: "`ltrimstr`"
|
- title: "`ltrimstr`"
|
||||||
body: |
|
body: |
|
||||||
|
|||||||
Reference in new issue
Block a user