mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-24 07:33:12 +09:00
Fixed table.tostring
This commit is contained in:
1 parent
3939b13759
commit
98481696f0
1 file changed
+1
-1
@@ -438,7 +438,7 @@ end
|
|||||||
-- table.tostring(a) -- return '{["k1"]="foo",["k2"]="bar"}'
|
-- table.tostring(a) -- return '{["k1"]="foo",["k2"]="bar"}'
|
||||||
-- @tparam table tbl table to convert
|
-- @tparam table tbl table to convert
|
||||||
-- @treturn string the converted table
|
-- @treturn string the converted table
|
||||||
function table.to_string(tbl)
|
function table.tostring(tbl)
|
||||||
local result, done = {}, {}
|
local result, done = {}, {}
|
||||||
for k, v in ipairs(tbl) do
|
for k, v in ipairs(tbl) do
|
||||||
table.insert(result,table.val_to_str(v))
|
table.insert(result,table.val_to_str(v))
|
||||||
|
|||||||
Reference in new issue
Block a user