summaryrefslogtreecommitdiff
path: root/io_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'io_buffer.c')
-rw-r--r--io_buffer.c4
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>
* # ...