Skip to content

Commit

Permalink
[ci skip] Update documentation for GC.stat
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Nov 29, 2021
1 parent 659c864 commit f8ead3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ def self.count

# call-seq:
# GC.stat -> Hash
# GC.stat(hash) -> hash
# GC.stat(hash) -> Hash
# GC.stat(:key) -> Numeric
#
# Returns a Hash containing information about the GC.
#
# The contents of the hash are implementation specific and may be changed in
# the future.
# The contents of the hash are implementation specific and may change in
# the future without notice.
#
# The hash includes information about internal statistics about GC such as:
#
Expand Down Expand Up @@ -191,7 +191,7 @@ def self.count
# it is overwritten and returned.
# This is intended to avoid probe effect.
#
# This method is only expected to work on C Ruby.
# This method is only expected to work on CRuby.
def self.stat hash_or_key = nil
Primitive.gc_stat hash_or_key
end
Expand Down

0 comments on commit f8ead3a

Please sign in to comment.