1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-12 18:30:29 +00:00

Merge pull request #475 from Wilma456/ComputerCraft-1/ioline

Fix io.lines()
This commit is contained in:
SquidDev 2017-11-14 23:53:50 +00:00
commit 66f683d9c9

View File

@ -54,7 +54,7 @@ function input( _arg )
end end
function lines( _sFileName ) function lines( _sFileName )
if _G.type( _sFileNamel ) ~= "string" then if _G.type( _sFileName ) ~= "string" then
error( "bad argument #1 (expected string, got " .. _G.type( _sFileName ) .. ")", 2 ) error( "bad argument #1 (expected string, got " .. _G.type( _sFileName ) .. ")", 2 )
end end
if _sFileName then if _sFileName then