From f0c3df3113b28a596a29eab0aef1b8206da499db Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 28 Oct 2017 16:34:30 +0000 Subject: 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 --- io.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'io.c') 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 -- cgit v1.2.3