2
0
Эх сурвалжийг харах

rename var in setget section to avoid confusion (#1724)

* rename var in setget section to avoid confusion

changed my_var to myvar so that example actually compilable and doesn't cause a confusion to the shallow reader

* rename the declaration variable instead
Alexey Shmakov 6 жил өмнө
parent
commit
56e40f6d23

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

@@ -1228,7 +1228,7 @@ with the new value. Vice-versa, when ``variable`` is accessed, the *getter* func
 
 
 ::
 ::
 
 
-    var myvar setget my_var_set, my_var_get
+    var my_var setget my_var_set, my_var_get
 
 
     func my_var_set(new_value):
     func my_var_set(new_value):
         my_var = new_value
         my_var = new_value