aboutsummaryrefslogtreecommitdiff
path: root/containers.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-16 16:44:16 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-16 16:44:30 -0800
commit75bb8979aee185e82de0e3a5b82d88774997a634 (patch)
tree9d37c5e8cf09c2a56f2fc5cd08ae4aa4d0927677 /containers.lua
parent1cbf9f3e07de9303283c747f7dbad61b77278819 (diff)
Fixed dict tostring to use {.x = 1} form instead of {x: 1}
Diffstat (limited to 'containers.lua')
-rw-r--r--containers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/containers.lua b/containers.lua
index 418a819..2cb8e49 100644
--- a/containers.lua
+++ b/containers.lua
@@ -281,7 +281,7 @@ local _dict_mt = {
local _accum_0 = { }
local _len_0 = 1
for k, v in pairs(self) do
- _accum_0[_len_0] = tostring(as_nomsu(k)) .. ": " .. tostring(as_nomsu(v))
+ _accum_0[_len_0] = "." .. tostring(k) .. " = " .. tostring(v)
_len_0 = _len_0 + 1
end
return _accum_0
@@ -292,7 +292,7 @@ local _dict_mt = {
local _accum_0 = { }
local _len_0 = 1
for k, v in pairs(self) do
- _accum_0[_len_0] = tostring(as_nomsu(k)) .. ": " .. tostring(as_nomsu(v))
+ _accum_0[_len_0] = "." .. tostring(as_nomsu(k)) .. " = " .. tostring(as_nomsu(v))
_len_0 = _len_0 + 1
end
return _accum_0