Tiny documentation fix. (#5659)

There are plenty of lines longer than 80 characters, and spliting the function declaration across two lines can be momentarily confusing.
This commit is contained in:
Bluebird 2017-04-26 00:24:15 -05:00 committed by Loïc Blot
parent 2818d3f224
commit 70ceeb80a1

@ -1919,8 +1919,7 @@ Helper functions
* `math.sign(x, tolerance)` * `math.sign(x, tolerance)`
* Get the sign of a number. * Get the sign of a number.
Optional: Also returns `0` when the absolute value is within the tolerance (default: `0`) Optional: Also returns `0` when the absolute value is within the tolerance (default: `0`)
* `string.split(str, separator=",", include_empty=false, max_splits=-1, * `string.split(str, separator=",", include_empty=false, max_splits=-1, sep_is_pattern=false)`
* sep_is_pattern=false)`
* If `max_splits` is negative, do not limit splits. * If `max_splits` is negative, do not limit splits.
* `sep_is_pattern` specifies if separator is a plain string or a pattern (regex). * `sep_is_pattern` specifies if separator is a plain string or a pattern (regex).
* e.g. `string:split("a,b", ",") == {"a","b"}` * e.g. `string:split("a,b", ",") == {"a","b"}`