Trying to fix tostring

This commit is contained in:
Cooldude2606
2017-09-15 19:16:07 +01:00
parent dd0c13d64a
commit 9c4600377a
5 changed files with 10 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ function table.val_to_str ( v )
end
return '"' .. string.gsub(v,'"', '\\"' ) .. '"'
else
return "table" == type( v ) and table.to_string( v ) or
return "table" == type( v ) and table.tostring( v ) or
tostring( v )
end
end
@@ -56,7 +56,7 @@ function table.key_to_str ( k )
end
end
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 ) )