Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 6406615f0205f8db4dc3f1adf479a4609ee7fc8e 1 parent 6f109e8
@kachick kachick authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 examples/sample38.rb
View
10 examples/sample38.rb
@@ -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" )
Please sign in to comment.
Something went wrong with that request. Please try again.