Permalink
Browse files

"k" local variable is more appropriate here.

  • Loading branch information...
1 parent 257f214 commit 72fa08c0c3e3bdad448b16fe4981f9fb3e03d8ba @postmodern committed Oct 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/combinatorics/power_set/mixin.rb
@@ -34,8 +34,8 @@ def powerset
elements = self.to_a
elements.uniq!
- 0.upto(elements.length) do |n|
- elements.combination(n) do |subset|
+ 0.upto(elements.length) do |k|
+ elements.combination(k) do |subset|
yield Set.new(subset)
end
end

0 comments on commit 72fa08c

Please sign in to comment.