diff --git a/gc.rb b/gc.rb index ac04cb2e25..135c97666d 100644 --- a/gc.rb +++ b/gc.rb @@ -66,11 +66,13 @@ module GC # call-seq: # GC.disable -> true or false # - # Disables garbage collection, returning +true+ if garbage - # collection was already disabled. + # Disables garbage collection (but GC.start remains potent): + # returns whether garbage collection was already disabled. + # + # GC.enable + # GC.disable # => false + # GC.disable # => true # - # GC.disable #=> false - # GC.disable #=> true def self.disable Primitive.gc_disable end