From cf31414a08ec9a3371d99fcbd85131f0f943e9cf Mon Sep 17 00:00:00 2001 From: Marco Manino Date: Mon, 31 Jul 2023 16:54:04 +0200 Subject: [PATCH] Fixing example in documentation (#432) `String` type is not directly indexable (at least not in go-starlark). --- doc/spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/spec.md b/doc/spec.md index 6026b09c..07d186e5 100644 --- a/doc/spec.md +++ b/doc/spec.md @@ -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