io.c: [DOC] update outdated documentation of ARGF.close
As of Ruby 2.3, IO#close no longer raises IOError if the file is already closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a1f3d0b693
commit
ac8f9a0af7
7
io.c
7
io.c
@ -11879,9 +11879,9 @@ argf_skip(VALUE argf)
|
|||||||
* call-seq:
|
* call-seq:
|
||||||
* ARGF.close -> ARGF
|
* ARGF.close -> ARGF
|
||||||
*
|
*
|
||||||
* Closes the current file and skips to the next in the stream. Trying to
|
* Closes the current file and skips to the next file in ARGV. If there are
|
||||||
* close a file that has already been closed causes an +IOError+ to be
|
* no more files to open, just closes the current file. +STDIN+ will not be
|
||||||
* raised.
|
* closed.
|
||||||
*
|
*
|
||||||
* For example:
|
* For example:
|
||||||
*
|
*
|
||||||
@ -11891,7 +11891,6 @@ argf_skip(VALUE argf)
|
|||||||
* ARGF.close
|
* ARGF.close
|
||||||
* ARGF.filename #=> "bar"
|
* ARGF.filename #=> "bar"
|
||||||
* ARGF.close
|
* ARGF.close
|
||||||
* ARGF.close #=> closed stream (IOError)
|
|
||||||
*/
|
*/
|
||||||
static VALUE
|
static VALUE
|
||||||
argf_close_m(VALUE argf)
|
argf_close_m(VALUE argf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user