mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] IO#close on closed IO is not an error.
This commit is contained in:
parent
dfb67a4433
commit
ed2f8ea62e
1 changed files with 3 additions and 0 deletions
3
io.c
3
io.c
|
@ -5699,6 +5699,9 @@ rb_io_close(VALUE io)
|
|||
* If the stream was opened by IO.popen, sets global variable <tt>$?</tt>
|
||||
* (child exit status).
|
||||
*
|
||||
* It is not an error to close an IO object that has already been closed.
|
||||
* It just returns nil.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* IO.popen('ruby', 'r+') do |pipe|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue