aboutsummaryrefslogtreecommitdiffstats
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
commitb5abd2efb834240413fc0eedbc09e5d5bc844d0b (patch)
treee7254cf5df6fa1bd7a777986502e5a23f084dabc
parent71522414bdc8e4f5b67afa2d13774df7a725918d (diff)
downloadruby-b5abd2efb834240413fc0eedbc09e5d5bc844d0b.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
-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:
*