瀏覽代碼

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

TYPE_REAL no longer exists, changed to TYPE_FLOAT
FeralBytes 2 年之前
父節點
當前提交
fad177f9b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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")