From 77df959697fc208f83a165fa0320dbca0ac19c97 Mon Sep 17 00:00:00 2001 From: Praneeth Shetty <64432063+ganimtron-10@users.noreply.github.com> Date: Sun, 15 Oct 2023 15:08:36 +0530 Subject: [PATCH] fix: add missing commas in code example in lesson 23 --- .../visuals/ExampleUseFirstItem.tscn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/course/lesson-24-access-array-indices/visuals/ExampleUseFirstItem.tscn b/course/lesson-24-access-array-indices/visuals/ExampleUseFirstItem.tscn index 61e905b1..a99b6636 100644 --- a/course/lesson-24-access-array-indices/visuals/ExampleUseFirstItem.tscn +++ b/course/lesson-24-access-array-indices/visuals/ExampleUseFirstItem.tscn @@ -20,7 +20,8 @@ func _ready() -> void: var runnable_code_example = get_parent() var item_names: PoolStringArray = [] for item in get_children(): - item_names.append('\\t\"%s\"' % item.get_texture_name()) + item_names.append('\\t\"%s\",' % item.get_texture_name()) + item_names[-1] = item_names[-1].rstrip(',') var code := CODE_BEGIN code.append_array(item_names) code.append_array(CODE_END)