summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authoritchyny <itchyny@cybozu.co.jp>2023-08-13 14:43:55 +0900
committerNico Williams <nico@cryptonector.com>2023-08-16 17:49:44 -0500
commit0733fd3d58b941ab9b8a6d623ec7fb9175f41579 (patch)
treed06c1831536cdb641ee9a022f20aa352a7776c29 /docs
parentf85c9fcb78f89fa833f2d5a2cf26b54318e06e05 (diff)
Add a regression test for negative indices and fix a pick/1 test
Diffstat (limited to 'docs')
-rw-r--r--docs/content/manual/manual.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml
index 6382d835..e6edbc7b 100644
--- a/docs/content/manual/manual.yml
+++ b/docs/content/manual/manual.yml
@@ -1048,10 +1048,11 @@ sections:
- title: "`pick(pathexps)`"
body: |
- Emit the projection of the input object or array defined by the specified
- sequence of path expressions, such that if p is any one of these specifications,
- then `(. | p)` will evaluate to the same value as `(. | pick(pathexps) | p)`.
- For arrays, negative indices and .[m:n] specifications should not be used.
+ Emit the projection of the input object or array defined by the
+ specified sequence of path expressions, such that if `p` is any
+ one of these specifications, then `(. | p)` will evaluate to the
+ same value as `(. | pick(pathexps) | p)`. For arrays, negative
+ indices and `.[m:n]` specifications should not be used.
examples:
- program: 'pick(.a, .b.c, .x)'