Skip to content
Myr

Clarify the `//` operator (fix typo)

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

authored by Nicolas Williams · committed by Nicolas Williams · parent dcaf701 · Browse files · 2 files+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:docs/content/manual/manual.yml+1 added-1 removed
2389 unmodified lines
23902391 The `//` operator produces all the values of its left-hand2392 side that are neither `false` nor `null`, or, if the2393 left-hand side produces no values other than `false` or2394 `true`, then `//` produces all the values of its right-hand2394 `null`, then `//` produces all the values of its right-hand2395 side.23962397 A filter of the form `a // b` produces all the results of2398 `a` that are not `false` or `null`. If `a` produces no
1287 unmodified lines
modified:jq.1.prebuilt+1 added-1 removed
2575 unmodified lines
2576.2577.IP "" 02578.2579.SS "Alternative operator: //"2580The \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\.2580The \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\.2581.2582.P2583A 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\.2584.
1536 unmodified lines