[DOC] Fix the description about the timing finalizers will be called

This commit is contained in:
Nobuyoshi Nakada 2024-05-04 01:34:35 +09:00
parent 91485d7dc6
commit b6625d38d8
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

7
gc.c
View File

@ -13594,10 +13594,9 @@ rb_gcdebug_remove_stress_to_class(int argc, VALUE *argv, VALUE self)
* traverse all living objects with an iterator. * traverse all living objects with an iterator.
* *
* ObjectSpace also provides support for object finalizers, procs that will be * ObjectSpace also provides support for object finalizers, procs that will be
* called when a specific object is about to be destroyed by garbage * called after a specific object was destroyed by garbage collection. See
* collection. See the documentation for * the documentation for +ObjectSpace.define_finalizer+ for important
* <code>ObjectSpace.define_finalizer</code> for important information on * information on how to use this method correctly.
* how to use this method correctly.
* *
* a = "A" * a = "A"
* b = "B" * b = "B"