Browse Source

Update gdscript_basics.rst

Zirak 7 years ago
parent
commit
c7a230410f
1 changed files with 2 additions and 2 deletions
  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
 ~~~~~~~~~~~~~~~