From 3a11c3091589ae4d36da31e72f3ee791977255fd Mon Sep 17 00:00:00 2001 From: "Cyril K.B" <53737317+Cykyrios@users.noreply.github.com> Date: Sat, 18 Feb 2023 10:14:00 +0100 Subject: [PATCH] Fix code block formatting in gdscript_bascis.rst --- tutorials/scripting/gdscript/gdscript_basics.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/scripting/gdscript/gdscript_basics.rst b/tutorials/scripting/gdscript/gdscript_basics.rst index 512e633a6..de0d8bdbc 100644 --- a/tutorials/scripting/gdscript/gdscript_basics.rst +++ b/tutorials/scripting/gdscript/gdscript_basics.rst @@ -1137,6 +1137,7 @@ If you want to assign values on an array as it is being iterated through, it is best to use ``for i in array.size()``. :: + for i in array.size(): array[i] = "Hello World" @@ -1146,6 +1147,7 @@ the value on the array. Objects passed by reference (such as nodes) can still be manipulated by calling methods on the loop variable. :: + for string in string_array: string = "Hello World" # This has no effect