diff options
author | Micky <micheledevita2@gmail.com> | 2024-08-19 00:55:51 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2024-08-19 00:55:51 +0200 |
commit | e80c44dbe7c8808178d6af8a348fe77bce541a3e (patch) | |
tree | 0a661dc44cbe4f7e0dd73d71d219026564cc6ce5 | |
parent | 1bd740d18d714f815486b04bf4c6154ef6c355d9 (diff) | |
download | redot-engine-e80c44dbe7c8808178d6af8a348fe77bce541a3e.tar.gz |
Fix some invalid code in GDScript class reference
-rw-r--r-- | modules/gdscript/doc_classes/@GDScript.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index 6e7ac0dec9..104fc15a8c 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -52,9 +52,9 @@ <description> Returns a single character (as a [String]) of the given Unicode code point (which is compatible with ASCII code). [codeblock] - a = char(65) # a is "A" - a = char(65 + 32) # a is "a" - a = char(8364) # a is "€" + var upper = char(65) # upper is "A" + var lower = char(65 + 32) # lower is "a" + var euro = char(8364) # euro is "€" [/codeblock] </description> </method> @@ -150,10 +150,10 @@ <description> Returns the length of the given Variant [param var]. The length can be the character count of a [String] or [StringName], the element count of any array type, or the size of a [Dictionary]. For every other Variant type, a run-time error is generated and execution is stopped. [codeblock] - a = [1, 2, 3, 4] + var a = [1, 2, 3, 4] len(a) # Returns 4 - b = "Hello!" + var b = "Hello!" len(b) # Returns 6 [/codeblock] </description> |