summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-12-13 13:41:07 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2024-12-13 14:25:32 -0500
commit880a90cf2e56f9782b578fd48088c184bf3952ac (patch)
treed50ea1267c8ec5a07edb6a03a7d6d580080e4bc0 /string.c
parentc3b06792410e99c32ff5c05580ffaef7d5f377c4 (diff)
[DOC] [Feature #20205] Document the new power of String#+@
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12341
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/string.c b/string.c
index 2f89e3c141..d7318c7916 100644
--- a/string.c
+++ b/string.c
@@ -3188,7 +3188,8 @@ rb_str_freeze(VALUE str)
* call-seq:
* +string -> new_string or self
*
- * Returns +self+ if +self+ is not frozen.
+ * Returns +self+ if +self+ is not frozen and can be mutated
+ * without warning issuance.
*
* Otherwise returns <tt>self.dup</tt>, which is not frozen.
*/