瀏覽代碼

Fix connected function name in scripting.rst (#3124)

beamer159 5 年之前
父節點
當前提交
4d35f97e1b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      getting_started/step_by_step/scripting.rst

+ 1 - 1
getting_started/step_by_step/scripting.rst

@@ -252,7 +252,7 @@ Next, write a function which will be called when the button is pressed:
         GetNode<Label>("Label").Text = "HELLO!";
     }
 
-Finally, connect the button's "pressed" signal to ``_ready()`` by
+Finally, connect the button's "pressed" signal to ``_on_Button_pressed()`` by
 using :ref:`Object.connect() <class_Object_method_connect>`.
 
 .. tabs::