summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-20 13:14:26 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-20 13:14:26 +0200
commitdbe8712d4eda555829283624df7c79faa4bc02ea (patch)
treeff366e4f8b13f516b788e87af592ff6c208170ba
parentddaefb3cd680d19db6bacd03ffc38ac7a9ef0ec8 (diff)
parentedff9ebd1803a386aa3f5764a6cd338f027f375e (diff)
downloadredot-engine-dbe8712d4eda555829283624df7c79faa4bc02ea.tar.gz
Merge pull request #78463 from AThousandShips/string_slice_doc
Clarify `String.get_slice` behavior
-rw-r--r--doc/classes/String.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index ac571e20bb..ca8d1d5255 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -290,7 +290,7 @@
<param index="0" name="delimiter" type="String" />
<param index="1" name="slice" type="int" />
<description>
- Splits the string using a [param delimiter] and returns the substring at index [param slice]. Returns an empty string if the [param slice] does not exist.
+ Splits the string using a [param delimiter] and returns the substring at index [param slice]. Returns the original string if [param delimiter] does not occur in the string. Returns an empty string if the [param slice] does not exist.
This is faster than [method split], if you only need one substring.
[b]Example:[/b]
[codeblock]