[DOC] IO#close on closed IO is not an error.
This commit is contained in:
parent
dfb67a4433
commit
ed2f8ea62e
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…
x
Reference in New Issue
Block a user