Browse files

Fix shadowed variable warning in Ruby 1.9

  • Loading branch information...
1 parent 89dee46 commit 2995b0b45b7f3ab2af4436a6aede5180e21facbb Nikolai Weibull committed Nov 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/treetop/compiler/node_classes/sequence.rb
View
2 lib/treetop/compiler/node_classes/sequence.rb
@@ -50,7 +50,7 @@ def initialize(sequence_elements)
@sequence_elements = sequence_elements
end
- def compile(index, builder, rule)
+ def compile(idx, builder, rule)
super
builder.module_declaration(module_name) do
elements_by_name = sequence_elements.inject({}){|h,e| (h[e.label_name.to_s] ||= []) << e; h}

0 comments on commit 2995b0b

Please sign in to comment.