We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87d6b0d commit 0b51b32Copy full SHA for 0b51b32
docs/Runtime Environment/String.md
@@ -19,12 +19,12 @@ assert(s:lower(1) == "hELLO")
19
Splits a string by a separator.
20
#### Parameters
21
1. The string to split.
22
-2. The separator to split a string by. Defaults to an empty string.
+2. The separator to split the string by.
23
3. An optional limit for the returned table size.
24
#### Returns
25
A table.
26
```pluto title="Splitting a string by an empty separator"
27
-print(dumpvar("ABC":split())) -- { "A", "B", "C" }
+print(dumpvar("ABC":split(""))) -- { "A", "B", "C" }
28
```
29
```pluto title="Splitting a string by a single character"
30
local s = "hello world, how is everyone doing?"
0 commit comments