mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 14:14:36 +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)
|
||||
|
||||
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
|
||||
|
||||
--we try to create as little garbage as possible!
|
||||
|
Loading…
Reference in New Issue
Block a user