diff options
author | Shannon Skipper <shannonskipper@gmail.com> | 2022-06-24 12:12:22 -0700 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-06-25 11:29:08 +1200 |
commit | 2b4a1ad58429c69483160ca86eaaeb544218818e (patch) | |
tree | 493c14f0a8d0b0a2d2020cdc6a3eafff2f967501 /io_buffer.c | |
parent | d7cc380666058dab967a8b4f96782967ce3efc0d (diff) |
Fix a variable name typo in the docs
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6060
Diffstat (limited to 'io_buffer.c')
-rw-r--r-- | io_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_buffer.c b/io_buffer.c index 7039ef71b8..cf6784e932 100644 --- a/io_buffer.c +++ b/io_buffer.c @@ -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> * # ... |