From 75046d2a7a897e7226567313883d6a4bbe33622f Mon Sep 17 00:00:00 2001 From: tidwall Date: Wed, 1 Sep 2021 07:33:46 -0700 Subject: [PATCH] Update comments --- README.md | 3 +-- gjson.go | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 09ac4ec..b7848de 100644 --- a/README.md +++ b/README.md @@ -128,8 +128,7 @@ result.Str // holds the string result.Num // holds the float64 number result.Raw // holds the raw json result.Index // index of raw value in original json, zero means index unknown -result.Indexes // indexes of all the elements that match on a `#(...)#` query - +result.Indexes // indexes of all the elements that match on a path containing the '#' query character. ``` There are a variety of handy functions that work on a result: diff --git a/gjson.go b/gjson.go index afaee29..973c8af 100644 --- a/gjson.go +++ b/gjson.go @@ -64,7 +64,8 @@ type Result struct { Num float64 // Index of raw value in original json, zero means index unknown Index int - // Indexes of all the elements that match on a `#(...)#` query. + // Indexes of all the elements that match on a path containing the '#' + // query character. Indexes []int }