From b6625d38d886acb8a2fdf8321197d29a1d63c12c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 4 May 2024 01:34:35 +0900 Subject: [PATCH] [DOC] Fix the description about the timing finalizers will be called --- gc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gc.c b/gc.c index 101ecd0e48..474454e487 100644 --- a/gc.c +++ b/gc.c @@ -13594,10 +13594,9 @@ rb_gcdebug_remove_stress_to_class(int argc, VALUE *argv, VALUE self) * traverse all living objects with an iterator. * * ObjectSpace also provides support for object finalizers, procs that will be - * called when a specific object is about to be destroyed by garbage - * collection. See the documentation for - * ObjectSpace.define_finalizer for important information on - * how to use this method correctly. + * called after a specific object was destroyed by garbage collection. See + * the documentation for +ObjectSpace.define_finalizer+ for important + * information on how to use this method correctly. * * a = "A" * b = "B"