aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 16:34:30 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 16:34:30 +0000
commit5761a1bd2571a7e1811b67d1f3d7e6d3d1a7d694 (patch)
tree87717df08c37d9ee01800af49b06957674216c42 /io.c
parent20355453ad59bf1915673e2810e1a604843e55de (diff)
downloadruby-5761a1bd2571a7e1811b67d1f3d7e6d3d1a7d694.tar.gz
Add note to close_{read,write} too
when call on closed stream [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io.c b/io.c
index 5d68eea318..5f3b45919f 100644
--- a/io.c
+++ b/io.c
@@ -4807,6 +4807,8 @@ rb_io_closed(VALUE io)
*
* prog.rb:3:in `readlines': not opened for reading (IOError)
* from prog.rb:3
+ *
+ * Calling this method on closed IO object is just ignored since Ruby 2.3.
*/
static VALUE
@@ -4867,6 +4869,8 @@ rb_io_close_read(VALUE io)
* prog.rb:3:in `write': not opened for writing (IOError)
* from prog.rb:3:in `print'
* from prog.rb:3
+ *
+ * Calling this method on closed IO object is just ignored since Ruby 2.3.
*/
static VALUE