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 years ago
parent
commit
fad177f9b0
1 changed files with 1 additions and 1 deletions
  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")