ruby-changes:72306
From: Shannon <ko1@a...>
Date: Sat, 25 Jun 2022 08:29:22 +0900 (JST)
Subject: [ruby-changes:72306] 2b4a1ad584 (master): Fix a variable name typo in the docs
https://git.ruby-lang.org/ruby.git/commit/?id=2b4a1ad584 From 2b4a1ad58429c69483160ca86eaaeb544218818e Mon Sep 17 00:00:00 2001 From: Shannon Skipper <shannonskipper@g...> Date: Fri, 24 Jun 2022 12:12:22 -0700 Subject: Fix a variable name typo in the docs --- io_buffer.c | 4 ++-- 1 file 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) https://github.com/ruby/ruby/blob/trunk/io_buffer.c#L1752 * * 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) https://github.com/ruby/ruby/blob/trunk/io_buffer.c#L2552 * \Buffer from string: * * string = 'data' - * buffer = IO::Buffer.for(str) + * buffer = IO::Buffer.for(string) * # => * # #<IO::Buffer 0x00007f3f02be9b18+4 SLICE> * # ... -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/