From 98481696f03a4453123eda2d2e4fb8c6e0f1293f Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 29 May 2018 22:03:32 +0100 Subject: [PATCH] Fixed table.tostring --- modules/FactorioStdLib/table.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FactorioStdLib/table.lua b/modules/FactorioStdLib/table.lua index b3229d1f..1c8acd30 100644 --- a/modules/FactorioStdLib/table.lua +++ b/modules/FactorioStdLib/table.lua @@ -438,7 +438,7 @@ end -- table.tostring(a) -- return '{["k1"]="foo",["k2"]="bar"}' -- @tparam table tbl table to convert -- @treturn string the converted table -function table.to_string(tbl) +function table.tostring(tbl) local result, done = {}, {} for k, v in ipairs(tbl) do table.insert(result,table.val_to_str(v))