Skip to content

Commit 17ae4da

Browse files
[DOC] Tweaks for StringIO#string= (#172)
1 parent bef6541 commit 17ae4da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/stringio/stringio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ strio_get_string(VALUE self)
514514
* call-seq:
515515
* string = other_string -> other_string
516516
*
517-
* Assigns the underlying string as +other_string+, and sets position to zero;
517+
* Replaces the stored string with +other_string+, and sets the position to zero;
518518
* returns +other_string+:
519519
*
520520
* StringIO.open('foo') do |strio|
@@ -528,7 +528,7 @@ strio_get_string(VALUE self)
528528
* "foo"
529529
* "bar"
530530
*
531-
* Related: StringIO#string (returns the underlying string).
531+
* Related: StringIO#string (returns the stored string).
532532
*/
533533
static VALUE
534534
strio_set_string(VALUE self, VALUE string)

0 commit comments

Comments
 (0)