소스 검색

More precise documentation about property underlying access (#7362)

Co-authored-by: Max Hilbrunner <[email protected]>
Felipe Augusto Marques 2 년 전
부모
커밋
c4db831703
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 2 - 2
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -1579,8 +1579,8 @@ Example::
         set(value):
         set(value):
             milliseconds = value * 1000
             milliseconds = value * 1000
 
 
-Using the variable name inside its own setter or getter will directly access the underlying member, so it
-won't generate infinite recursion and saves you from explicitly declaring another variable::
+Using the variable's name to set it inside its own setter or to get it inside its own getter will directly access the underlying member, 
+so it won't generate infinite recursion and saves you from explicitly declaring another variable::
 
 
     signal changed(new_value)
     signal changed(new_value)
     var warns_when_changed = "some value":
     var warns_when_changed = "some value":