浏览代码

Add exclamation point to example (#11183)

* add exclamation point to example
Nadav 2 周之前
父节点
当前提交
21f4fb2b64
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/best_practices/godot_notifications.rst

+ 1 - 1
tutorials/best_practices/godot_notifications.rst

@@ -292,7 +292,7 @@ values will set up according to the following sequence:
 
     public:
         String get_test() { return test; }
-        void set_test(String p_test) { return test = p_test; }
+        void set_test(String p_test) { test = p_test + "!"; }
 
         MyNode() {
             // Triggers the setter, changing _test's value from "one" to "two!".