summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-07-16 18:03:35 -0400
committerAlan Wu <[email protected]>2024-07-17 10:25:20 -0400
commitcd428b490d635726e3d39ae8aa896bc41708cbc4 (patch)
tree84541b16c668a8c0a6408da5df6846860fdeb975
parent403f44ec2c5047367271f5ec7a07b0460631321b (diff)
[DOC] No more is rb_ary_freeze() an alias of rb_obj_freeze()
[Feature #20589]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11179
-rw-r--r--include/ruby/internal/intern/array.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ruby/internal/intern/array.h b/include/ruby/internal/intern/array.h
index 1909fdf17b..b2cc6b132d 100644
--- a/include/ruby/internal/intern/array.h
+++ b/include/ruby/internal/intern/array.h
@@ -144,7 +144,13 @@ void rb_ary_free(VALUE ary);
*/
void rb_ary_modify(VALUE ary);
-/** @alias{rb_obj_freeze} */
+/**
+ * Freeze an array, preventing further modifications. The underlying buffer may
+ * be shrunk before freezing to conserve memory.
+ *
+ * @param[out] obj Object assumed to be an array to freeze.
+ * @see RB_OBJ_FREEZE()
+ */
VALUE rb_ary_freeze(VALUE obj);
RBIMPL_ATTR_PURE()