woops, meant to grab only 1 return from assert

This commit is contained in:
payonel 2019-07-15 02:11:37 -07:00
parent 9a1923f7f4
commit 838de82df9

View File

@ -34,7 +34,7 @@ function print(...)
local stdout = io.stdout local stdout = io.stdout
local pre = "" local pre = ""
for i = 1, args.n do for i = 1, args.n do
stdout:write(pre, assert(tostring(args[i]), "'tostring' must return a string to 'print'")) stdout:write(pre, (assert(tostring(args[i]), "'tostring' must return a string to 'print'")))
pre = "\t" pre = "\t"
end end
stdout:write("\n") stdout:write("\n")