1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix a variable name typo in the docs

This commit is contained in:
Shannon Skipper 2022-06-24 12:12:22 -07:00 committed by Samuel Williams
parent d7cc380666
commit 2b4a1ad584
Notes: git 2022-06-25 08:29:28 +09:00

View file

@ -1752,7 +1752,7 @@ rb_io_buffer_initialize_copy(VALUE self, VALUE source)
*
* string= "data: "
* # => "data: "
* buffer = IO::Buffer.for(str)
* buffer = IO::Buffer.for(string)
* buffer.copy(IO::Buffer.for("test"), 5)
* # => 4
* string
@ -2552,7 +2552,7 @@ io_buffer_not_inplace(VALUE self)
* \Buffer from string:
*
* string = 'data'
* buffer = IO::Buffer.for(str)
* buffer = IO::Buffer.for(string)
* # =>
* # #<IO::Buffer 0x00007f3f02be9b18+4 SLICE>
* # ...