diff options
author | Alan Wu <[email protected]> | 2024-07-16 18:03:35 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2024-07-17 10:25:20 -0400 |
commit | cd428b490d635726e3d39ae8aa896bc41708cbc4 (patch) | |
tree | 84541b16c668a8c0a6408da5df6846860fdeb975 | |
parent | 403f44ec2c5047367271f5ec7a07b0460631321b (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.h | 8 |
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() |