mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
clarify the non-zero *and* positive error
This commit is contained in:
parent
b01ba8e506
commit
e5d00ef3a7
@ -20,7 +20,7 @@ function stringx.split(self, delim, max_split)
|
|||||||
assert:type(max_split, "number", "stringx.split - max_split", 1)
|
assert:type(max_split, "number", "stringx.split - max_split", 1)
|
||||||
|
|
||||||
if max_split then
|
if max_split then
|
||||||
assert(max_split > 0, "max_split must be positive!")
|
assert(max_split > 0, "max_split must be non-zero and positive!")
|
||||||
end
|
end
|
||||||
|
|
||||||
--we try to create as little garbage as possible!
|
--we try to create as little garbage as possible!
|
||||||
|
Loading…
Reference in New Issue
Block a user