@@ -2441,13 +2441,13 @@ rb_io_buffer_initialize_copy(VALUE self, VALUE source)
24412441 *
24422442 * #copy can be used to put buffer into strings associated with buffer:
24432443 *
2444- * string= "buffer : "
2445- * # => "buffer : "
2444+ * string= "data : "
2445+ * # => "data : "
24462446 * buffer = IO::Buffer.for(string)
24472447 * buffer.copy(IO::Buffer.for("test"), 5)
24482448 * # => 4
24492449 * string
2450- * # => "buffer :test"
2450+ * # => "data :test"
24512451 *
24522452 * Attempt to copy into a read-only buffer will fail:
24532453 *
@@ -3571,15 +3571,15 @@ io_buffer_not_inplace(VALUE self)
35713571 *
35723572 * \Buffer from string:
35733573 *
3574- * string = 'buffer '
3574+ * string = 'data '
35753575 * buffer = IO::Buffer.for(string)
35763576 * # =>
35773577 * # #<IO::Buffer 0x00007f3f02be9b18+4 SLICE>
35783578 * # ...
35793579 * buffer
35803580 * # =>
35813581 * # #<IO::Buffer 0x00007f3f02be9b18+4 SLICE>
3582- * # 0x00000000 64 61 74 61 buffer
3582+ * # 0x00000000 64 61 74 61 data
35833583 *
35843584 * buffer.get_string(2) # read content starting from offset 2
35853585 * # => "ta"
@@ -3594,7 +3594,7 @@ io_buffer_not_inplace(VALUE self)
35943594 *
35953595 * \Buffer from file:
35963596 *
3597- * File.write('test.txt', 'test buffer ')
3597+ * File.write('test.txt', 'test data ')
35983598 * # => 9
35993599 * buffer = IO::Buffer.map(File.open('test.txt'))
36003600 * # =>
@@ -3611,7 +3611,7 @@ io_buffer_not_inplace(VALUE self)
36113611 * buffer.set_string('---', 1)
36123612 * # => 3 -- bytes written
36133613 * File.read('test.txt')
3614- * # => "t--- buffer "
3614+ * # => "t--- data "
36153615 *
36163616 * <b>The class is experimental and the interface is subject to change, this
36173617 * is especially true of file mappings which may be removed entirely in
0 commit comments