Permalink
Browse files

Prevent style warnings.

  • Loading branch information...
1 parent 7d035c3 commit d4b296d49b6d2f95411acc895ec7dc20ebbd22f3 @postmodern committed Oct 26, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/combinatorics/extensions/range.rb
  2. +1 −1 spec/list_comprehension_spec.rb
@@ -53,7 +53,7 @@ def upto(other)
self.first.upto(other.first) do |start|
self.last.upto(other.last) do |stop|
- yield (start..stop)
+ yield start..stop
end
end
end
@@ -89,7 +89,7 @@ def downto(other)
self.first.downto(other.first) do |start|
self.last.downto(other.last) do |stop|
- yield (start..stop)
+ yield start..stop
end
end
end
@@ -54,7 +54,7 @@
[1,2],
Combinatorics::Generator.new { |g|
multiplier += 1
- 5.times { |i| g.yield (i * multiplier) }
+ 5.times { |i| g.yield(i * multiplier) }
}
]

0 comments on commit d4b296d

Please sign in to comment.