From 1beedb8ae8dc343f2895f5c8da8b60d8e511c1bd Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Thu, 19 Oct 2023 10:22:37 +0200 Subject: [PATCH] Update GDScript reference, 'in'-keyword explanation The explanation for the keyword 'in' states it checks, whether an element is in a list (among others). This is the only occurrence of the word 'list' in this context and I assume it actually means array. To avoid future confusion, it makes sense to replace the word list with array in this explanation. --- tutorials/scripting/gdscript/gdscript_basics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/scripting/gdscript/gdscript_basics.rst b/tutorials/scripting/gdscript/gdscript_basics.rst index 8ce5769c818..7c0a32b02c7 100644 --- a/tutorials/scripting/gdscript/gdscript_basics.rst +++ b/tutorials/scripting/gdscript/gdscript_basics.rst @@ -181,7 +181,7 @@ in case you want to take a look under the hood. +------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | is | Tests whether a variable extends a given class, or is of a given built-in type. | +------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ -| in | Tests whether a value is within a string, list, range, dictionary, or node. When used with ``for``, it iterates through them instead of testing. | +| in | Tests whether a value is within a string, array, range, dictionary, or node. When used with ``for``, it iterates through them instead of testing. | +------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | as | Cast the value to a given type if possible. | +------------+---------------------------------------------------------------------------------------------------------------------------------------------------+