diff --git a/gc.rb b/gc.rb index 1d45b48b34..22d3c5398f 100644 --- a/gc.rb +++ b/gc.rb @@ -104,9 +104,14 @@ module GC end # call-seq: - # GC.count -> Integer + # self.count -> integer + # + # Returns the total number of times garbage collection has occurred: + # + # GC.count # => 385 + # GC.start + # GC.count # => 386 # - # Returns the number of times \GC has occurred since the process started. def self.count Primitive.gc_count end