summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2025-11-04 18:09:10 -0600
committergit <svn-admin@ruby-lang.org>2025-11-05 00:09:36 +0000
commitd24bb1e76155374c82d03e3287f41247a2f04dce (patch)
tree699dec5215be0d42174990f31154b8c603429836
parentbd3b44cb0a341878abe0edf65d01b1a48c93f088 (diff)
[ruby/stringio] [DOC] Tweaks for StringIO#string=
(https://github.com/ruby/stringio/pull/172) https://github.com/ruby/stringio/commit/17ae4daf9a
-rw-r--r--ext/stringio/stringio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index c5e64a5c0f..39e4be5853 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)