Skip to content

Commit c1aeb35

Browse files
committed
Fixed incorrect motivating example.
1 parent d15aacc commit c1aeb35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/draft/jep-011-let-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ unique in the `states` list. This is currently not possible with JMESPath.
4949
In this example we can hard code the state `WA`:
5050

5151
```
52-
states[?name==`WA`].cities
52+
states[?name==`WA`].cities[]
5353
```
5454

5555
but it is not possible to base this on a value of `first_choice`, which
@@ -230,7 +230,7 @@ for explicit references using a specific token, say `$`.
230230
The original example in the “Motivation” section would be:
231231

232232
```
233-
states[?name==$.first_choice].cities
233+
states[?name==$.first_choice].cities[]
234234
```
235235

236236
While this could work, this has a number of downsides, the biggest one being

0 commit comments

Comments
 (0)