summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-08-29 15:32:57 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2025-08-29 15:40:06 -0400
commitcc07159fbad13978641fb86943b810f6d55f08fd (patch)
treecfb23225706d19f73d2eda405382417dfcdd201b /include/ruby/internal
parent39f3cab80d7b469793a1a3cf091ed875c54c3c86 (diff)
[DOC] rb_str_resurrect(): Reword to remove wrong guess; used by zlib
Diffstat (limited to 'include/ruby/internal')
-rw-r--r--include/ruby/internal/intern/string.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/ruby/internal/intern/string.h b/include/ruby/internal/intern/string.h
index 7b1bf5cc54..75a28143fb 100644
--- a/include/ruby/internal/intern/string.h
+++ b/include/ruby/internal/intern/string.h
@@ -591,10 +591,9 @@ void rb_must_asciicompat(VALUE obj);
VALUE rb_str_dup(VALUE str);
/**
- * I guess there is no use case of this function in extension libraries, but
- * this is a routine identical to rb_str_dup(), except it always creates an
- * instance of ::rb_cString regardless of the given object's class. This makes
- * the most sense when the passed string is formerly hidden by rb_obj_hide().
+ * Like rb_str_dup(), but always create an instance of ::rb_cString
+ * regardless of the given object's class. This makes the most sense
+ * when the passed string is formerly hidden by rb_obj_hide().
*
* @param[in] str A string, possibly hidden.
* @return A duplicated new instance of ::rb_cString.