Clarify the // operator (fix typo)

This commit is contained in:
Nicolas Williams committed 2023-08-03 23:24:12 -05:00
1 parent dcaf701ef6
commit 71941a0d47
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2391,7 +2391,7 @@ sections:
The `//` operator produces all the values of its left-hand The `//` operator produces all the values of its left-hand
side that are neither `false` nor `null`, or, if the side that are neither `false` nor `null`, or, if the
left-hand side produces no values other than `false` or left-hand side produces no values other than `false` or
`true`, then `//` produces all the values of its right-hand `null`, then `//` produces all the values of its right-hand
side. side.
A filter of the form `a // b` produces all the results of A filter of the form `a // b` produces all the results of
Generated
+1 -1
View File
@@ -2577,7 +2577,7 @@ jq \'[true, false | not]\'
.IP "" 0 .IP "" 0
. .
.SS "Alternative operator: //" .SS "Alternative operator: //"
The \fB//\fR operator produces all the values of its left\-hand side that are neither \fBfalse\fR nor \fBnull\fR, or, if the left\-hand side produces no values other than \fBfalse\fR or \fBtrue\fR, then \fB//\fR produces all the values of its right\-hand side\. The \fB//\fR operator produces all the values of its left\-hand side that are neither \fBfalse\fR nor \fBnull\fR, or, if the left\-hand side produces no values other than \fBfalse\fR or \fBnull\fR, then \fB//\fR produces all the values of its right\-hand side\.
. .
.P .P
A filter of the form \fBa // b\fR produces all the results of \fBa\fR that are not \fBfalse\fR or \fBnull\fR\. If \fBa\fR produces no results, or no results other than \fBfalse\fR or \fBnull\fR, then \fBa // b\fR produces the results of \fBb\fR\. A filter of the form \fBa // b\fR produces all the results of \fBa\fR that are not \fBfalse\fR or \fBnull\fR\. If \fBa\fR produces no results, or no results other than \fBfalse\fR or \fBnull\fR, then \fBa // b\fR produces the results of \fBb\fR\.