[json-glib] docs: Fix array subsets description
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] docs: Fix array subsets description
- Date: Sat, 18 Mar 2017 18:45:27 +0000 (UTC)
commit 64012f073177e8185642f0470c81a4d7fdc132bf
Author: Allin Cottrell <cottrell wfu edu>
Date: Sat Mar 18 18:42:29 2017 +0000
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
json-glib/json-path.c | 4 ++--
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]