Browse Source

Update gdscript_basics.rst

Zirak 7 năm trước cách đây
mục cha
commit
c7a230410f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 2 - 2
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -1393,7 +1393,7 @@ into an invalid state, for example:
 
 ::
 
-    func func():
+    func my_func():
 	    yield(button_func(), "completed")
 	    print("All buttons were pressed, hurray!")
 
@@ -1401,7 +1401,7 @@ into an invalid state, for example:
         yield($Button0, "pressed")
 	    yield($Button1, "pressed")
 
-``func`` will only continue execution once both the buttons are pressed.
+``my_func`` will only continue execution once both the buttons are pressed.
 
 Onready keyword
 ~~~~~~~~~~~~~~~