Skip to content
Myr

chore: Improve readability (for Alternative operator '//')

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Jesper Rønn-Jensen · committed by GitHub · parent 7e54d96 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:docs/content/manual/manual.yml+1 added-1 removed
2402 unmodified lines
2403 - title: "Alternative operator: `//`"2404 body: |24052406 The `//` operator produces all the values of its left-hand2407 side that are neither `false` nor `null`, or, if the2407 side that are neither `false` nor `null`. If the2408 left-hand side produces no values other than `false` or2409 `null`, then `//` produces all the values of its right-hand2410 side.2411
1352 unmodified lines
modified:jq.1.prebuilt+2 added-2 removed
1.2.TH "JQ" "1" "November 2023" "" ""2.TH "JQ" "1" "December 2023" "" ""3.4.SH "NAME"5\fBjq\fR \- Command\-line JSON processor6.
2578 unmodified lines
2585.2586.IP "" 02587.2588.SS "Alternative operator: //"2589The \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\.2589The \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\.2590.2591.P2592A 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\.2593.
1606 unmodified lines