Skip to content

Commit

Permalink
Fix variable shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Sep 1, 2024
1 parent 7024990 commit 61091c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/benchmark/ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def ips_quick(*methods, on: Kernel, **opts)
x.compare!

methods.each do |name|
x.report(name) do |x|
x.times { on.__send__ name }
x.report(name) do |iter|
iter.times { on.__send__ name }
end
end
end
Expand Down

0 comments on commit 61091c0

Please sign in to comment.