tracks/lua/exercises/say/example.lua in trackler-2.0.3.4 vs tracks/lua/exercises/say/example.lua in trackler-2.0.3.5
- old
+ new
@@ -65,28 +65,28 @@
end
return function(n)
if n < 0 or n > 999999999999 then return -1 end
- local blahs = {}
+ local groups = {}
local group_index = 0
while n > 0 do
local group = say_group(n % 1000)
if group ~= '' then
if group_name[group_index] then
group = group .. ' ' .. group_name[group_index]
end
- table.insert(blahs, 1, group)
+ table.insert(groups, 1, group)
end
n = n // 1000
group_index = group_index + 1
end
- if #blahs == 0 then
+ if #groups == 0 then
return 'zero'
else
- return table.concat(blahs, ' ')
+ return table.concat(groups, ' ')
end
end