From e5d00ef3a7bee61e71a05ba0d9a298680e8c6c00 Mon Sep 17 00:00:00 2001 From: "Jeremy S. Postelnek" Date: Fri, 24 Dec 2021 13:23:37 -0500 Subject: [PATCH] clarify the non-zero *and* positive error --- stringx.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stringx.lua b/stringx.lua index 0a7e6f6..1730ba8 100644 --- a/stringx.lua +++ b/stringx.lua @@ -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!