clarify the non-zero *and* positive error

This commit is contained in:
Jeremy S. Postelnek 2021-12-24 13:23:37 -05:00 committed by GitHub
parent b01ba8e506
commit e5d00ef3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!