diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-01 07:25:02 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-01 07:25:02 +0100 |
commit | ab2f8ab6ce0afed889547467bbb1a32b05215ccd (patch) | |
tree | 5dae38097ad4432c58761bbf88035d36b2a62058 /doc/classes | |
parent | d8e71dc51a54d0049cdbdee34d6b0237400f52ef (diff) | |
parent | be4f36b87e5939a3921d644dd9e03c9ebd81aa4d (diff) |
Merge pull request #72371 from dalexeev/remove-gds-str-duplicate
Remove `@GDScript.str` (duplicate of `@GlobalScope.str`)
Diffstat (limited to 'doc/classes')
-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 0d6524ccbe..3b2e260dcb 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"> |