[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

12
gc.rb
View file

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