summaryrefslogtreecommitdiff
path: root/lib/open3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/open3.rb')
-rw-r--r--lib/open3.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/open3.rb b/lib/open3.rb
index 7f3384b186..2cc93289be 100644
--- a/lib/open3.rb
+++ b/lib/open3.rb
@@ -495,7 +495,7 @@ module Open3
# - Returns as +status+ a <tt>Process::Status</tt> object
# that represents the exit status of the child process.
#
- # With no block given, returns the array <tt>[stdin_s, stdout_a, status]</tt>:
+ # Returns the array <tt>[stdin_s, stdout_s, status]</tt>:
#
# stdout_s, stderr_s, status = Open3.capture3('echo "Foo"')
# # => ["Foo\n", "", #<Process::Status: pid 2281954 exit 0>]
@@ -516,8 +516,8 @@ module Open3
# - If entry <tt>options[:stdin_data]</tt> exists,
# and its string value is sent to the command's standard input:
#
- # Open3.capture3('tee', {:stdin_data => 'Foo'})
- # # => ["Foo", "", #<Process::Status: pid 2283204 exit 0>]
+ # Open3.capture3('tee', :stdin_data => 'Foo')
+ # # => ["Foo", "", #<Process::Status: pid 2319575 exit 0>]
#
# - If <tt>options[:binmode]</tt> exists,
# the internal streams are set to binary mode.