[DOC] Tweaks for GC.enable

This commit is contained in:
BurdetteLamar 2025-08-12 12:37:00 -05:00 committed by Peter Zhu
parent b934f989b9
commit 8b530e1282

10
gc.rb
View file

@ -52,12 +52,12 @@ module GC
# call-seq:
# GC.enable -> true or false
#
# Enables garbage collection, returning +true+ if garbage
# collection was previously disabled.
# Enables garbage collection;
# returns whether garbage collection was disabled:
#
# GC.disable #=> false
# GC.enable #=> true
# GC.enable #=> false
# GC.disable
# GC.enable # => true
# GC.enable # => false
#
def self.enable
Primitive.gc_enable