Skip to content

Commit b934f98

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for GC.disable
1 parent 231407c commit b934f98

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gc.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ def self.enable
6666
# call-seq:
6767
# GC.disable -> true or false
6868
#
69-
# Disables garbage collection, returning +true+ if garbage
70-
# collection was already disabled.
69+
# Disables garbage collection (but GC.start remains potent):
70+
# returns whether garbage collection was already disabled.
71+
#
72+
# GC.enable
73+
# GC.disable # => false
74+
# GC.disable # => true
7175
#
72-
# GC.disable #=> false
73-
# GC.disable #=> true
7476
def self.disable
7577
Primitive.gc_disable
7678
end

0 commit comments

Comments
 (0)