aboutsummaryrefslogtreecommitdiffstats
path: root/util/array.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-05-10 10:46:27 +0100
committerMatthew Wild <mwild1@gmail.com>2013-05-10 10:46:27 +0100
commitc3ea781f9f47946b386f1f4e3e1f872adf8f863f (patch)
treed9d7540d13a8f11cafcf89a9e457ce4ae6bae0ce /util/array.lua
parentd95cb8d43f88ca04ab9646859f94b23699a4a190 (diff)
parent829a4b8786b1718a6345edb00becbaa2ff47e4a8 (diff)
downloadprosody-c3ea781f9f47946b386f1f4e3e1f872adf8f863f.tar.gz
prosody-c3ea781f9f47946b386f1f4e3e1f872adf8f863f.zip
Merge 0.9->trunk
Diffstat (limited to 'util/array.lua')
-rw-r--r--util/array.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/array.lua b/util/array.lua
index b78fb98f..2d58e7fb 100644
--- a/util/array.lua
+++ b/util/array.lua
@@ -17,7 +17,7 @@ local tostring = tostring;
local array = {};
local array_base = {};
local array_methods = {};
-local array_mt = { __index = array_methods, __tostring = function (array) return array:concat(", "); end };
+local array_mt = { __index = array_methods, __tostring = function (array) return "{"..array:concat(", ").."}"; end };
local function new_array(self, t, _s, _var)
if type(t) == "function" then -- Assume iterator