Permalink
Browse files

Remove a warning "shadowing outer local variable - g" in examples

  • Loading branch information...
1 parent 6f109e8 commit 6406615f0205f8db4dc3f1adf479a4609ee7fc8e @kachick kachick committed Jan 11, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 examples/sample38.rb
View
@@ -2,11 +2,11 @@
$:.unshift( "../lib" )
require "graphviz"
-g = GraphViz::new( :G ) { |g|
- g.a[:label => "ε"]
- g.add_nodes( "b", :label => "ε" )
- g.c[:label => 'ε']
- g.add_nodes( "d", :label => 'ε' )
+g = GraphViz::new( :G ) { |_g|
+ _g.a[:label => "ε"]
+ _g.add_nodes( "b", :label => "ε" )
+ _g.c[:label => 'ε']
+ _g.add_nodes( "d", :label => 'ε' )
}
puts g.output( :none => String, :png => "#{$0}.png", :path => "/usr/local/bin" )

0 comments on commit 6406615

Please sign in to comment.