Browse Source

Change match `typeof()` example from REAL to FLOAT in GDScript reference (#6384)

TYPE_REAL no longer exists, changed to TYPE_FLOAT
FeralBytes 2 năm trước cách đây
mục cha
commit
fad177f9b0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tutorials/scripting/gdscript/gdscript_basics.rst

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

@@ -1210,7 +1210,7 @@ There are 6 pattern types:
     Matches the contents of a variable/enum::
 
         match typeof(x):
-            TYPE_REAL:
+            TYPE_FLOAT:
                 print("float")
             TYPE_STRING:
                 print("text")