From c01e958492cb99276d15b514d8ccac9a1c3d93fa Mon Sep 17 00:00:00 2001 From: The Yellow Architect Date: Tue, 12 Dec 2023 21:18:11 +0200 Subject: [PATCH] Corrected expected output in enum comments --- tutorials/scripting/gdscript/gdscript_basics.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/scripting/gdscript/gdscript_basics.rst b/tutorials/scripting/gdscript/gdscript_basics.rst index b48ca8c9f29..074764efb4d 100644 --- a/tutorials/scripting/gdscript/gdscript_basics.rst +++ b/tutorials/scripting/gdscript/gdscript_basics.rst @@ -1236,10 +1236,10 @@ a dictionary can also be used with a named enum. func _ready(): # Access values with Name.KEY, prints '5' print(State.STATE_JUMP) - # Use constant dictionary functions + # Use dictionary methods: # prints '["STATE_IDLE", "STATE_JUMP", "STATE_SHOOT"]' print(State.keys()) - # prints '["STATE_IDLE", "STATE_JUMP", "STATE_SHOOT"]' + # prints '{ "STATE_IDLE": 0, "STATE_JUMP": 5, "STATE_SHOOT": 6 }' print(State) # prints '[0, 5, 6]' print(State.values())