diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 16:34:30 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 16:34:30 +0000 |
commit | f0c3df3113b28a596a29eab0aef1b8206da499db (patch) | |
tree | 87717df08c37d9ee01800af49b06957674216c42 /io.c | |
parent | a53ac0c54f3e7bbcdfdab9af75fddc566ef91c63 (diff) |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |