From 48c7c84e46809291746ff4229a30e8da9b6cde3a Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 17 Dec 2011 01:17:23 +0000 Subject: [PATCH] update doc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open3.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/open3.rb b/lib/open3.rb index 27185f49cf..36211f042c 100644 --- a/lib/open3.rb +++ b/lib/open3.rb @@ -55,9 +55,9 @@ module Open3 # The parameters +cmd...+ is passed to Process.spawn. # So a commandline string and list of argument strings can be accepted as follows. # - # Open3.popen3("echo a") {|i, o, e, t| ... } - # Open3.popen3("echo", "a") {|i, o, e, t| ... } - # Open3.popen3(["echo", "argv0"], "a") {|i, o, e, t| ... } + # Open3.popen3("echo abc") {|i, o, e, t| ... } + # Open3.popen3("echo", "abc") {|i, o, e, t| ... } + # Open3.popen3(["echo", "argv0"], "abc") {|i, o, e, t| ... } # # If the last parameter, opts, is a Hash, it is recognized as an option for Process.spawn. # @@ -248,8 +248,8 @@ module Open3 # End # layouted_graph, dot_log = Open3.capture3("dot -v", :stdin_data=>graph) # - # o, e, s = Open3.capture3("echo a; sort >&2", :stdin_data=>"foo\nbar\nbaz\n") - # p o #=> "a\n" + # o, e, s = Open3.capture3("echo abc; sort >&2", :stdin_data=>"foo\nbar\nbaz\n") + # p o #=> "abc\n" # p e #=> "bar\nbaz\nfoo\n" # p s #=> # #