Skip to content

Commit 7595ac9

Browse files
[DOC] Tweaks for GC.count
1 parent 40d07f2 commit 7595ac9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

gc.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,14 @@ def self.stress=(flag)
104104
end
105105

106106
# call-seq:
107-
# GC.count -> Integer
107+
# self.count -> integer
108+
#
109+
# Returns the total number of times garbage collection has occurred:
110+
#
111+
# GC.count # => 385
112+
# GC.start
113+
# GC.count # => 386
108114
#
109-
# Returns the number of times \GC has occurred since the process started.
110115
def self.count
111116
Primitive.gc_count
112117
end

0 commit comments

Comments
 (0)