doc: Fix String.rsplit code example

Fixes #36898.
Supersedes and closes #36951.
This commit is contained in:
Rémi Verschelde 2022-03-26 15:05:05 +01:00
parent fec2486994
commit e7fd0ec31f

View file

@ -633,8 +633,8 @@
var some_string = "One,Two,Three,Four"
var some_array = some_string.rsplit(",", true, 1)
print(some_array.size()) # Prints 2
print(some_array[0]) # Prints "Four"
print(some_array[1]) # Prints "Three,Two,One"
print(some_array[0]) # Prints "One,Two,Three"
print(some_array[1]) # Prints "Four"
[/gdscript]
[csharp]
// There is no Rsplit.