From 434c353e7158d1ce68b8a8f44d0a6c127073565b Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 9 Apr 2017 11:53:53 +0000 Subject: [PATCH] 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 `[#>, #, #]` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. - * #> is returned when the current file is STDIN. + * $stdin is returned when the current file is STDIN. * * For example: *