From ca36473904ad6692c44ec495ef91ad7b51e39c3e Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 15 Aug 2015 11:31:50 +0100 Subject: [PATCH] Renaming of internal serialize func map --- lume.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lume.lua b/lume.lua index 33ff0ef..e51e97e 100644 --- a/lume.lua +++ b/lume.lua @@ -538,7 +538,7 @@ end local serialize -local serializemap = { +local serialize_map = { [ "number" ] = tostring, [ "boolean" ] = tostring, [ "nil" ] = tostring, @@ -556,12 +556,12 @@ local serializemap = { end } -setmetatable(serializemap, { +setmetatable(serialize_map, { __index = function(t, k) error("unsupported serialize type: " .. k) end }) serialize = function(x, stk) - return serializemap[type(x)](x, stk) + return serialize_map[type(x)](x, stk) end function lume.serialize(x)