]> granicus.if.org Git - jq/commitdiff
Document `{$var}`
authorNicolas Williams <nico@cryptonector.com>
Sat, 27 Jun 2015 02:18:58 +0000 (21:18 -0500)
committerNicolas Williams <nico@cryptonector.com>
Sat, 27 Jun 2015 02:18:58 +0000 (21:18 -0500)
docs/content/3.manual/manual.yml

index 1092b3b33c0de331833252a11ad9de5d3ca3c02f..1fbf392bc5120ad8c682926fe3b3439912f8dac2 100644 (file)
@@ -2190,6 +2190,9 @@ sections:
           with `$x` set to that value.  Thus `as` functions as something of a
           foreach loop.
 
+          Just as `{foo}` is a handy way of writing `{foo: .foo}`, so
+          `{$foo}` is a handy way of writing `{foo:$foo}`.
+
           Multiple variables may be declared using a single `as` expression by
           providing a pattern that matches the structure of the input
           (this is known as "destructuring"):