classref: Sync with current master branch (655e93d)

This commit is contained in:
Godot Organization
2024-04-06 03:20:11 +00:00
parent 4023e054d5
commit 388e6b7328
45 changed files with 2725 additions and 394 deletions

View File

@@ -28,7 +28,7 @@ In computer programming, a Variant class is a class that is designed to store a
foo = "Now foo is a string!"
foo = RefCounted.new() # foo is an Object
var bar: int = 2 # bar is a statically typed integer.
# bar = "Uh oh! I can't make static variables become a different type!"
# bar = "Uh oh! I can't make statically typed variables become a different type!"
.. code-tab:: csharp
@@ -62,7 +62,7 @@ The global :ref:`@GlobalScope.typeof<class_@GlobalScope_method_typeof>` function
match typeof(foo):
TYPE_NIL:
print("foo is null")
TYPE_INTEGER:
TYPE_INT:
print("foo is an integer")
TYPE_OBJECT:
# Note that Objects are their own special category.