Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Sep 1, 2021
1 parent 5827eb3 commit 75046d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion gjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 75046d2

Please sign in to comment.