diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-09 11:53:53 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-09 11:53:53 +0000 |
commit | 434c353e7158d1ce68b8a8f44d0a6c127073565b (patch) | |
tree | e7254cf5df6fa1bd7a777986502e5a23f084dabc /io.c | |
parent | 9e4da4486b4b454b01cac1d0aa06f490d760b140 (diff) | |
download | ruby-434c353e7158d1ce68b8a8f44d0a6c127073565b.tar.gz |
io.c: ARGF.file returns $stdin instead of STDIN [ci skip]
For example:
`ruby -e '$stdin=open(IO::NULL);p [STDIN,$stdin,ARGF.file]'`
prints `[#<IO:<STDIN>>, #<File:/dev/null>, #<File:/dev/null>]`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11988,7 +11988,7 @@ argf_filename_getter(ID id, VALUE *var) * ARGF.file -> IO or File object * * Returns the current file as an +IO+ or +File+ object. - * <code>#<IO:<STDIN>></code> is returned when the current file is STDIN. + * <code>$stdin</code> is returned when the current file is STDIN. * * For example: * |