Kaynağa Gözat

Merge pull request #90088 from Jordyfel/statically-typed-not-static

Fix small error in Variant doc
Rémi Verschelde 1 yıl önce
ebeveyn
işleme
72e9e57baa
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      doc/classes/Variant.xml

+ 2 - 2
doc/classes/Variant.xml

@@ -11,7 +11,7 @@
 		foo = "Now foo is a string!"
 		foo = "Now foo is a string!"
 		foo = RefCounted.new() # foo is an Object
 		foo = RefCounted.new() # foo is an Object
 		var bar: int = 2 # bar is a statically typed integer.
 		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]
 		[/gdscript]
 		[csharp]
 		[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.
 		// 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):
 		match typeof(foo):
 		    TYPE_NIL:
 		    TYPE_NIL:
 		        print("foo is null")
 		        print("foo is null")
-		    TYPE_INTEGER:
+		    TYPE_INT:
 		        print("foo is an integer")
 		        print("foo is an integer")
 		    TYPE_OBJECT:
 		    TYPE_OBJECT:
 		        # Note that Objects are their own special category.
 		        # Note that Objects are their own special category.