瀏覽代碼

Merge pull request #3528 from mtttz/master

Replace outdated identifier in example code
Max Hilbrunner 5 年之前
父節點
當前提交
de77f11aeb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 1 - 1
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();