diff --git a/getting_started/scripting/gdscript/gdscript_basics.rst b/getting_started/scripting/gdscript/gdscript_basics.rst index d0cc80f67..fee8bdb34 100644 --- a/getting_started/scripting/gdscript/gdscript_basics.rst +++ b/getting_started/scripting/gdscript/gdscript_basics.rst @@ -1507,7 +1507,7 @@ Remember to save the new function state, when using multiple ``yield``\s:: func _ready(): var co = co_func(); - while co is GDScriptFunction && co.is_valid(): + while co is GDScriptFunctionState && co.is_valid(): co = co.resume();