Lua got confused by varargs
This commit is contained in:
1 parent
f229e7331e
commit
f1b5fbc615
2 files changed
+5
-4
No files matched your search
+2
-1
@@ -280,8 +280,9 @@ utility.read_file = function(file_name)
|
||||
end
|
||||
|
||||
utility.write_file = function(file_name, ...)
|
||||
local text = table.concat{...}
|
||||
return utility.open(file_name, "w", function(file)
|
||||
file:write(table.concat{...})
|
||||
file:write(text)
|
||||
-- file:write("\n") -- I need to make sure /I/ handle this instead of trying to automate it
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user