From 999351e66773673df7521eab709b6596bc2bc0a0 Mon Sep 17 00:00:00 2001 From: "Wilma456 (Jakob0815)" Date: Wed, 4 Oct 2017 18:51:48 +0200 Subject: [PATCH] Fix io.lines() --- src/main/resources/assets/computercraft/lua/rom/apis/io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/apis/io.lua b/src/main/resources/assets/computercraft/lua/rom/apis/io.lua index 02d376210..3c73ad8bc 100644 --- a/src/main/resources/assets/computercraft/lua/rom/apis/io.lua +++ b/src/main/resources/assets/computercraft/lua/rom/apis/io.lua @@ -54,7 +54,7 @@ function input( _arg ) end 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 ) end if _sFileName then