From e41209caf2050a99775cb2184a5e2ed066e052a7 Mon Sep 17 00:00:00 2001 From: Jordyfel Date: Mon, 1 Apr 2024 03:08:30 +0300 Subject: [PATCH] Fix small error in Variant doc --- doc/classes/Variant.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/Variant.xml b/doc/classes/Variant.xml index 273480064227..eb837a46430e 100644 --- a/doc/classes/Variant.xml +++ b/doc/classes/Variant.xml @@ -11,7 +11,7 @@ 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!" [/gdscript] [csharp] // C# is statically typed. Once a variable has a type it cannot be changed. You can use the `var` keyword to let the compiler infer the type automatically. @@ -36,7 +36,7 @@ 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.