mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
doc: Fix String.rsplit code example
Fixes #36898. Supersedes and closes #36951. (cherry picked from commit e7fd0ec31f29b325edf0e17e8ba77a3ba0741d08)
This commit is contained in:
parent
4ce3baf8f9
commit
d25e588af7
@ -724,8 +724,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"
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
Loading…
Reference in New Issue
Block a user