summaryrefslogtreecommitdiff
path: root/json-glib/json-path.c
diff options
context:
space:
mode:
authorAllin Cottrell <cottrell@wfu.edu>2017-03-18 18:42:29 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-03-18 18:42:29 +0000
commit64012f073177e8185642f0470c81a4d7fdc132bf (patch)
tree8a5f9ec46503163720191ee784ae8a3cd9cda9ce /json-glib/json-path.c
parent278df260322159324b0d775d4840dd0f1e2fa24d (diff)
downloadjson-glib-64012f073177e8185642f0470c81a4d7fdc132bf.tar.gz
docs: Fix array subsets description
The doc for json-glib misstates the meaning of the JsonPath set notation operator, as in $.store.book[0,2] This does not mean elements 0 to 2 (a range) but rather just elements 0 and 2. This is correctly handled in the library; it's just the doc that is wrong. https://bugzilla.gnome.org/show_bug.cgi?id=768788
Diffstat (limited to 'json-glib/json-path.c')
-rw-r--r--json-glib/json-path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json-glib/json-path.c b/json-glib/json-path.c
index c46d210..dd04d58 100644
--- a/json-glib/json-path.c
+++ b/json-glib/json-path.c
@@ -79,8 +79,8 @@
* the first element of the book array of the store object.
*
* * Subsets of element nodes can be accessed using the set notation
- * operator `[start,end]`. For instance, `$.store.book[0,2]` matches the
- * first, second, and third elements of the book array of the store
+ * operator `[i,j,...]`. For instance, `$.store.book[0,2]` matches the
+ * elements 0 and 2 (the first and third) of the book array of the store
* object.
*
* * Slices of element nodes can be accessed using the slice notation