summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Rønn-Jensen <jesperrr@gmail.com>2023-12-11 12:38:54 +0100
committerGitHub <noreply@github.com>2023-12-11 11:38:54 +0000
commit2ccab044fe148e88c0833b5585a038ae730b6e54 (patch)
tree1b71654b494b8775927ebf5ae5c9ea02806351ec
parent7e54d9646e0e1d96179c10914769dbafae766ef2 (diff)
chore: Improve readability (for Alternative operator '//')
The description of the Alternative operator `//` was hard for me to grasp in its wording. I suggest dividing the looong sentence into two parts. Since it is actually an alternative formulation, the sentence can be divided into the first formulation, and the alternative formulation.
-rw-r--r--docs/content/manual/manual.yml2
-rw-r--r--jq.1.prebuilt4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml
index 5983f3cb..b8b1a1e6 100644
--- a/docs/content/manual/manual.yml
+++ b/docs/content/manual/manual.yml
@@ -2404,7 +2404,7 @@ sections:
body: |
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`. If the
left-hand side produces no values other than `false` or
`null`, then `//` produces all the values of its right-hand
side.
diff --git a/jq.1.prebuilt b/jq.1.prebuilt
index bb3a4b34..24939de2 100644
--- a/jq.1.prebuilt
+++ b/jq.1.prebuilt
@@ -1,5 +1,5 @@
.
-.TH "JQ" "1" "November 2023" "" ""
+.TH "JQ" "1" "December 2023" "" ""
.
.SH "NAME"
\fBjq\fR \- Command\-line JSON processor
@@ -2586,7 +2586,7 @@ jq \'[true, false | not]\'
.IP "" 0
.
.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 \fBnull\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\. 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
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\.