Skip to content

Commit 0b51b32

Browse files
committed
Update string.split
1 parent 87d6b0d commit 0b51b32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Runtime Environment/String.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ assert(s:lower(1) == "hELLO")
1919
Splits a string by a separator.
2020
#### Parameters
2121
1. The string to split.
22-
2. The separator to split a string by. Defaults to an empty string.
22+
2. The separator to split the string by.
2323
3. An optional limit for the returned table size.
2424
#### Returns
2525
A table.
2626
```pluto title="Splitting a string by an empty separator"
27-
print(dumpvar("ABC":split())) -- { "A", "B", "C" }
27+
print(dumpvar("ABC":split(""))) -- { "A", "B", "C" }
2828
```
2929
```pluto title="Splitting a string by a single character"
3030
local s = "hello world, how is everyone doing?"

0 commit comments

Comments
 (0)