Fixes #463 - io.lines() was derped.

This commit is contained in:
Florian Nücke 2014-08-04 17:51:37 +02:00
parent d77da6698f
commit f685f81cc7

View File

@ -70,8 +70,8 @@ end
function io.lines(filename, ...)
if filename then
local result, reason = io.open(filename)
if not result then
local file, reason = io.open(filename)
if not file then
error(reason, 2)
end
local args = table.pack(...)