summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan <stefan.haubenthal@gmail.com>2022-01-24 11:53:44 +0100
committerNico Williams <nico@cryptonector.com>2022-05-26 15:43:55 -0500
commit94e87c93770b8bab753fd1186b94a65f4699e2ac (patch)
treec333ed99c1c1154c32fcee1983b5026f863fc4bb
parentf9afa950e26f5d548d955f92e83e6b8e10cc8438 (diff)
downloadjq-94e87c93770b8bab753fd1186b94a65f4699e2ac.tar.gz
Fixed typos
-rw-r--r--jq.1.prebuilt4
1 files changed, 2 insertions, 2 deletions
diff --git a/jq.1.prebuilt b/jq.1.prebuilt
index c98be3a..0049b2c 100644
--- a/jq.1.prebuilt
+++ b/jq.1.prebuilt
@@ -1039,7 +1039,7 @@ Stops the jq program with no further outputs\. The input will be printed on \fBs
The given \fBexit_code\fR (defaulting to \fB5\fR) will be jq\'s exit status\.
.
.P
-For example, \fB"Error: somthing went wrong\en"|halt_error(1)\fR\.
+For example, \fB"Error: something went wrong\en"|halt_error(1)\fR\.
.
.SS "$__loc__"
Produces an object with a "file" key and a "line" key, with the filename and line number where \fB$__loc__\fR occurs, as values\.
@@ -3135,7 +3135,7 @@ If an object has two fields which are arrays, \fB\.foo\fR and \fB\.bar\fR, and y
This means that it\'s impossible to build circular values in jq (such as an array whose first element is itself)\. This is quite intentional, and ensures that anything a jq program can produce can be represented in JSON\.
.
.P
-All the assignment operators in jq have path expressions on the left\-hand side (LHS)\. The right\-hand side (RHS) procides values to set to the paths named by the LHS path expressions\.
+All the assignment operators in jq have path expressions on the left\-hand side (LHS)\. The right\-hand side (RHS) provides values to set to the paths named by the LHS path expressions\.
.
.P
Values in jq are always immutable\. Internally, assignment works by using a reduction to compute new, replacement values for \fB\.\fR that have had all the desired assignments applied to \fB\.\fR, then outputting the modified value\. This might be made clear by this example: \fB{a:{b:{c:1}}} | (\.a\.b|=3), \.\fR\. This will output \fB{"a":{"b":3}}\fR and \fB{"a":{"b":{"c":1}}}\fR because the last sub\-expression, \fB\.\fR, sees the original value, not the modified value\.