Skip to content

Commit 75046d2

Browse files
committed
Update comments
1 parent 5827eb3 commit 75046d2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ result.Str // holds the string
128128
result.Num // holds the float64 number
129129
result.Raw // holds the raw json
130130
result.Index // index of raw value in original json, zero means index unknown
131-
result.Indexes // indexes of all the elements that match on a `#(...)#` query
132-
131+
result.Indexes // indexes of all the elements that match on a path containing the '#' query character.
133132
```
134133

135134
There are a variety of handy functions that work on a result:

gjson.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ type Result struct {
6464
Num float64
6565
// Index of raw value in original json, zero means index unknown
6666
Index int
67-
// Indexes of all the elements that match on a `#(...)#` query.
67+
// Indexes of all the elements that match on a path containing the '#'
68+
// query character.
6869
Indexes []int
6970
}
7071

0 commit comments

Comments
 (0)