Browse Source

Add exclamation point to example (#11183)

* add exclamation point to example
Nadav 2 weeks ago
parent
commit
21f4fb2b64
1 changed files with 1 additions and 1 deletions
  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!".