Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
These changes fix the README example
  • Loading branch information
nayden committed Jan 29, 2013
1 parent 9abfc1c commit cbac1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rdoc
Expand Up @@ -47,12 +47,12 @@ In a nutshell:


# "on_data" is called when the process writes something to stdout # "on_data" is called when the process writes something to stdout
ch.on_data do |c, data| ch.on_data do |c, data|
$STDOUT.print data $stdout.print data
end end


# "on_extended_data" is called when the process writes something to stderr # "on_extended_data" is called when the process writes something to stderr
ch.on_extended_data do |c, type, data| ch.on_extended_data do |c, type, data|
$STDERR.print data $stderr.print data
end end


ch.on_close { puts "done!" } ch.on_close { puts "done!" }
Expand Down

0 comments on commit cbac1f8

Please sign in to comment.