Skip to content

Commit 5b76bec

Browse files
authored
Fix typos in slice-expression JEPs (#146)
1 parent 4e7327f commit 5b76bec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jep-005-array-slices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ etc)
3232
3. Extracting only elements before a given stop position: `[:5]`
3333

3434

35-
4. Extracting elements between a given start and end position: `[2::5]`
35+
4. Extracting elements between a given start and end position: `[2:5]`
3636

3737

3838
5. Only the last 5 elements: `[-5:]`

jep-015-string-slices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## Abstract
1212

13-
The original [JEP 5](https://github.com/jmespath-community/jmespath.spec/blob/main/jep-005-array-slices.md) introduced `slice-expression` in the grammar to slice specific portions of an array. While the syntax was specifically designed to operate on strings, there is no actual limitation in the grammar to extend this behaviour to string.
13+
The original [JEP 5](https://github.com/jmespath-community/jmespath.spec/blob/main/jep-005-array-slices.md) introduced `slice-expression` in the grammar to slice specific portions of an array. While the syntax was specifically designed to operate on arrays, the syntactic grammar allows it after any expression.
1414

1515
This JEP introduces changes to allow `slice-expression` to operate on string types and act like a more powerful `substring()` function.
1616

0 commit comments

Comments
 (0)