diff --git a/io_buffer.c b/io_buffer.c index af884f1473..5210d4732b 100644 --- a/io_buffer.c +++ b/io_buffer.c @@ -2441,13 +2441,13 @@ rb_io_buffer_initialize_copy(VALUE self, VALUE source) * * #copy can be used to put buffer into strings associated with buffer: * - * string= "buffer: " - * # => "buffer: " + * string= "data: " + * # => "data: " * buffer = IO::Buffer.for(string) * buffer.copy(IO::Buffer.for("test"), 5) * # => 4 * string - * # => "buffer:test" + * # => "data:test" * * Attempt to copy into a read-only buffer will fail: * @@ -3571,7 +3571,7 @@ io_buffer_not_inplace(VALUE self) * * \Buffer from string: * - * string = 'buffer' + * string = 'data' * buffer = IO::Buffer.for(string) * # => * # # @@ -3579,7 +3579,7 @@ io_buffer_not_inplace(VALUE self) * buffer * # => * # # - * # 0x00000000 64 61 74 61 buffer + * # 0x00000000 64 61 74 61 data * * buffer.get_string(2) # read content starting from offset 2 * # => "ta" @@ -3594,7 +3594,7 @@ io_buffer_not_inplace(VALUE self) * * \Buffer from file: * - * File.write('test.txt', 'test buffer') + * File.write('test.txt', 'test data') * # => 9 * buffer = IO::Buffer.map(File.open('test.txt')) * # => @@ -3611,7 +3611,7 @@ io_buffer_not_inplace(VALUE self) * buffer.set_string('---', 1) * # => 3 -- bytes written * File.read('test.txt') - * # => "t--- buffer" + * # => "t--- data" * * The class is experimental and the interface is subject to change, this * is especially true of file mappings which may be removed entirely in