diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-01-30 14:29:07 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-01-30 14:29:07 +0300 |
commit | be4f36b87e5939a3921d644dd9e03c9ebd81aa4d (patch) | |
tree | a5d5c4c2bd42731708c88ff7aacbc19416124351 /doc | |
parent | 833c0d24dbf3c442857fd9d7b1fd17918fadddc9 (diff) |
Remove `@GDScript.str` (duplicate of `@GlobalScope.str`)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/@GlobalScope.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index 485c04da6d..8833ae4432 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -1271,7 +1271,13 @@ <method name="str" qualifiers="vararg"> <return type="String" /> <description> - Converts one or more arguments of any [Variant] type to [String] in the best way possible. + Converts one or more arguments of any [Variant] type to a [String] in the best way possible. + [codeblock] + var a = [10, 20, 30] + var b = str(a) + print(len(a)) # Prints 3 (the number of elements in the array). + print(len(b)) # Prints 12 (the length of the string "[10, 20, 30]"). + [/codeblock] </description> </method> <method name="str_to_var"> |