1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Documentation clarification suggestions

This commit is contained in:
Janne Cederberg
2016-04-10 08:34:44 +03:00
committed by Nico Williams
parent a10d7fbb02
commit 114ac72169
2 changed files with 8 additions and 8 deletions

View File

@@ -723,7 +723,7 @@ sections:
- title: "`in`"
body: |
The builtin function `in` returns the input key is in the
The builtin function `in` returns whether or not the input key is in the
given object, or the input index corresponds to an element
in the given array. It is, essentially, an inversed version
of `has`.
@@ -740,7 +740,7 @@ sections:
body: |
For any filter `x`, `map(x)` will run that filter for each
element of the input array, and produce the outputs a new
element of the input array, and return the outputs in a new
array. `map(.+1)` will increment each element of an array of numbers.
Similarly, `map_values(x)` will run that filter for each element,
@@ -762,8 +762,8 @@ sections:
body: |
Outputs array representations of the given path expression
in `.`. The outputs are arrays of strings (keys in objects0
and/or numbers (array indices.
in `.`. The outputs are arrays of strings (object keys)
and/or numbers (array indices).
Path expressions are jq expressions like `.a`, but also `.[]`.
There are two types of path expressions: ones that can match

View File

@@ -711,7 +711,7 @@ sections:
- title: "`in`"
body: |
The builtin function `in` returns the input key is in the
The builtin function `in` returns whether or not the input key is in the
given object, or the input index corresponds to an element
in the given array. It is, essentially, an inversed version
of `has`.
@@ -728,8 +728,8 @@ sections:
body: |
Outputs array representations of the given path expression
in `.`. The outputs are arrays of strings (keys in objects0
and/or numbers (array indices.
in `.`. The outputs are arrays of strings (object keys)
and/or numbers (array indices).
Path expressions are jq expressions like `.a`, but also `.[]`.
There are two types of path expressions: ones that can match
@@ -866,7 +866,7 @@ sections:
body: |
For any filter `x`, `map(x)` will run that filter for each
element of the input array, and produce the outputs a new
element of the input array, and return the outputs in a new
array. `map(.+1)` will increment each element of an array of numbers.
Similarly, `map_values(x)` will run that filter for each element,