Skip to content

Commit

Permalink
duplicated previous change in src/functions.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
dandorman committed Apr 30, 2012
1 parent 4cba93c commit 4654f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.lua
Expand Up @@ -117,7 +117,7 @@ end

function test_parenthesis_are_not_needed_on_invocation_when_the_only_parameter_is_a_string()
local function count_spaces(str)
count = 0
local count = 0
str:gsub(" ", function() count = count + 1 end) -- notice the closure here!
return count
end
Expand Down

0 comments on commit 4654f20

Please sign in to comment.