Skip to content

Commit

Permalink
Fixing example in documentation (#432)
Browse files Browse the repository at this point in the history
`String` type is not directly indexable (at least not in go-starlark).
  • Loading branch information
marco6 authored Jul 31, 2023
1 parent 7dadff3 commit cf31414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3469,7 +3469,7 @@ shortest of the input sequences.
```python
zip() # []
zip(range(5)) # [(0,), (1,), (2,), (3,), (4,)]
zip(range(5), "abc") # [(0, "a"), (1, "b"), (2, "c")]
zip(range(5), "abc".elems()) # [(0, "a"), (1, "b"), (2, "c")]
```
## Built-in methods
Expand Down

0 comments on commit cf31414

Please sign in to comment.