Software /
code /
prosody
Diff
util/iterators.lua @ 3540:bc139431830b
Monster whitespace commit (beware the whitespace monster).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 23:00:42 +0500 |
parent | 3392:6e31b49c4ab8 |
child | 4386:ce769240f8ec |
line wrap: on
line diff
--- a/util/iterators.lua Sat Oct 16 08:34:32 2010 +0500 +++ b/util/iterators.lua Sat Oct 16 23:00:42 2010 +0500 @@ -73,7 +73,7 @@ var = ret[1]; if var == nil then break; end x = x + 1; - end + end return x; end @@ -131,7 +131,7 @@ return t; end --- Treat the return of an iterator as key,value pairs, +-- Treat the return of an iterator as key,value pairs, -- and build a table function it2table(f, s, var) local t, var = {};