Skip to content

Commit 360c8e1

Browse files
committed
Fixing typos
1 parent 6ee9f87 commit 360c8e1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

SYNTAX.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GJSON Path Syntax
22

3-
A GJSON Path is a text string syntax that describes a search pattern for quickly retreiving values from a JSON payload.
3+
A GJSON Path is a text string syntax that describes a search pattern for quickly retrieving values from a JSON payload.
44

55
This document is designed to explain the structure of a GJSON Path through examples.
66

@@ -15,12 +15,12 @@ This document is designed to explain the structure of a GJSON Path through examp
1515
- [Multipaths](#multipaths)
1616
- [Literals](#literals)
1717

18-
The definitive implemenation is [github.com/tidwall/gjson](https://github.com/tidwall/gjson).
18+
The definitive implementation is [github.com/tidwall/gjson](https://github.com/tidwall/gjson).
1919
Use the [GJSON Playground](https://gjson.dev) to experiment with the syntax online.
2020

2121
## Path structure
2222

23-
A GJSON Path is intended to be easily expressed as a series of components seperated by a `.` character.
23+
A GJSON Path is intended to be easily expressed as a series of components separated by a `.` character.
2424

2525
Along with `.` character, there are a few more that have special meaning, including `|`, `#`, `@`, `\`, `*`, `!`, and `?`.
2626

@@ -46,7 +46,7 @@ The following GJSON Paths evaluate to the accompanying values.
4646

4747
### Basic
4848

49-
In many cases you'll just want to retreive values by object name or array index.
49+
In many cases you'll just want to retrieve values by object name or array index.
5050

5151
```go
5252
name.last "Anderson"

gjson.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ func parseObject(c *parseContext, i int, path string) (int, bool) {
12521252
}
12531253

12541254
// matchLimit will limit the complexity of the match operation to avoid ReDos
1255-
// attacks from arbritary inputs.
1255+
// attacks from arbitrary inputs.
12561256
// See the github.com/tidwall/match.MatchLimit function for more information.
12571257
func matchLimit(str, pattern string) bool {
12581258
matched, _ := match.MatchLimit(str, pattern, 10000)
@@ -2189,8 +2189,8 @@ func unescape(json string) string {
21892189
return string(str)
21902190
}
21912191

2192-
// Less return true if a token is less than another token.
2193-
// The caseSensitive paramater is used when the tokens are Strings.
2192+
// Less returns true if a token is less than another token.
2193+
// The caseSensitive parameter is used when the tokens are Strings.
21942194
// The order when comparing two different type is:
21952195
//
21962196
// Null < False < Number < String < True < JSON

0 commit comments

Comments
 (0)