Skip to content

Commit

Permalink
[DOC] Fix docs for GC.compact
Browse files Browse the repository at this point in the history
GC.compact returns GC.latest_compact_info and not GC.latest_gc_info.
  • Loading branch information
peterzhu2118 committed Jan 8, 2024
1 parent 9527093 commit d9bad91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11104,8 +11104,8 @@ heap_check_moved_i(void *vstart, void *vend, size_t stride, void *data)
* This function compacts objects together in Ruby's heap. It eliminates
* unused space (or fragmentation) in the heap by moving objects in to that
* unused space. This function returns a hash which contains statistics about
* which objects were moved. See <tt>GC.latest_gc_info</tt> for details about
* compaction statistics.
* which objects were moved. See <tt>GC.latest_compact_info</tt> for details
* about compaction statistics.
*
* This method is implementation specific and not expected to be implemented
* in any implementation besides MRI.
Expand Down

0 comments on commit d9bad91

Please sign in to comment.