From b6f12fa0d22b739ddd5c8e4e6b2da85c1b22369b Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Tue, 4 Nov 2025 18:51:34 +0000 Subject: [PATCH] [DOC] Tweaks for StringIO#string= --- ext/stringio/stringio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 874a3a1b..a41529a0 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -514,7 +514,7 @@ strio_get_string(VALUE self) * call-seq: * string = other_string -> other_string * - * Assigns the underlying string as +other_string+, and sets position to zero; + * Replaces the stored string with +other_string+, and sets the position to zero; * returns +other_string+: * * StringIO.open('foo') do |strio| @@ -528,7 +528,7 @@ strio_get_string(VALUE self) * "foo" * "bar" * - * Related: StringIO#string (returns the underlying string). + * Related: StringIO#string (returns the stored string). */ static VALUE strio_set_string(VALUE self, VALUE string)