Skip to content

Commit 9587394

Browse files
committed
[DOC] rb_str_resurrect(): Reword to remove wrong guess; used by zlib
1 parent 39f3cab commit 9587394

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

include/ruby/internal/intern/string.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,9 @@ void rb_must_asciicompat(VALUE obj);
591591
VALUE rb_str_dup(VALUE str);
592592

593593
/**
594-
* I guess there is no use case of this function in extension libraries, but
595-
* this is a routine identical to rb_str_dup(), except it always creates an
596-
* instance of ::rb_cString regardless of the given object's class. This makes
597-
* the most sense when the passed string is formerly hidden by rb_obj_hide().
594+
* Like rb_str_dup(), but always create an instance of ::rb_cString
595+
* regardless of the given object's class. This makes the most sense
596+
* when the passed string is formerly hidden by rb_obj_hide().
598597
*
599598
* @param[in] str A string, possibly hidden.
600599
* @return A duplicated new instance of ::rb_cString.

0 commit comments

Comments
 (0)