summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-09 11:53:53 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-09 11:53:53 +0000
commit434c353e7158d1ce68b8a8f44d0a6c127073565b (patch)
treee7254cf5df6fa1bd7a777986502e5a23f084dabc /io.c
parent9e4da4486b4b454b01cac1d0aa06f490d760b140 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index bd21e9460e..40b758c340 100644
--- a/io.c
+++ b/io.c
@@ -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:
*