Skip to content

Commit

Permalink
fix: accessing undefined variable i
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 12, 2024
1 parent b41f2d7 commit 9104417
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function stringsplit(inputstr, sep)
end

local t = {}
i = 1
local i = 1
for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do
t[i] = str
i = i + 1
Expand Down

0 comments on commit 9104417

Please sign in to comment.