Merge pull request 'Use 'r' instead of 'nil' for io.open' (#1) from fix-io.open-type-mismatch into remove-dlls-from-repo

Reviewed-on: Auios/BlockLua#1
This commit is contained in:
2025-10-05 14:43:20 -04:00

View File

@@ -134,7 +134,7 @@ end
---@diagnostic disable-next-line: duplicate-set-field
function io.lines(fn)
local fi, err, fn2 = io.open(fn, nil, 2)
local fi, err, fn2 = io.open(fn, 'r', 2)
if not fi then error('Error opening file \''..fn2..'\': '..err, 2) end
return fi:lines()
end