Update comments

This commit is contained in:
tidwall 2021-09-01 07:33:46 -07:00
parent 5827eb3b24
commit 75046d2a7a
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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
}