Actions
Bug #20753
closed[doc] IO::Buffer examples try to write into readonly buffer returned from IO::Buffer.for
Bug #20753:
[doc] IO::Buffer examples try to write into readonly buffer returned from IO::Buffer.for
ruby -v:
ruby 3.4.0dev (2024-09-18T02:16:22Z master 4797b0704a) +PRISM [x86_64-linux]
Description
IO::Buffer.for without a block returns a readonly IO::Buffer. Some examples in the documentation for IO::Buffer write into the readonly buffers, which actually raise an IO::Buffer::AccessError.
From IO::Buffer#clear:
From IO::Buffer#copy:
And IO::Buffer#slice, which should be fixed along with its implementation #20752
Updated by mame (Yusuke Endoh) almost 2 years ago
- Assignee set to ioquatix (Samuel Williams)
Updated by ioquatix (Samuel Williams) almost 2 years ago
- Status changed from Open to Closed
Thanks for your report, this is now fixed.
Actions