Skip to content

Commit 7c1f6ed

Browse files
authored
Fixed missing flatten operator in motivating example.
1 parent f0ffd4f commit 7c1f6ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ With these changes defined, the expression in the “Motivation” section can b
217217
be written as:
218218

219219
```
220-
let({first_choice: first_choice}, &states[?name==first_choice].cities)
220+
let({first_choice: first_choice}, &states[?name==first_choice].cities[])
221221
```
222222

223223
Which evalutes to `["Seattle", "Bellevue", "Olympia"]`.

0 commit comments

Comments
 (0)