From aa4c8a439735da8bf0afb8e22b84b0d04e80d83d Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 11 Aug 2025 10:40:38 -0400 Subject: [PATCH] [DOC] Fix docs for GC.config After commit 61fff8a, GC.config now returns the same hash for getting and setting. --- gc.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gc.rb b/gc.rb index 603520df5312ab..ac04cb2e25e592 100644 --- a/gc.rb +++ b/gc.rb @@ -258,7 +258,7 @@ def self.stat_heap heap_name = nil, hash_or_key = nil # call-seq: # GC.config -> hash - # GC.config(hash_to_merge) -> merged_hash + # GC.config(hash_to_merge) -> hash # # This method is implementation-specific to CRuby. # @@ -274,15 +274,11 @@ def self.stat_heap heap_name = nil, hash_or_key = nil # With argument +hash_to_merge+ given, # merges that hash into the stored configuration hash; # ignores unknown hash keys; - # returns the implementation-specific configuration hash (see below): + # returns the configuration hash: # # GC.config(rgengc_allow_full_mark: false) - # # => {rgengc_allow_full_mark: false} - # GC.config # # => {rgengc_allow_full_mark: false, implementation: "default"} # GC.config(foo: 'bar') - # # => {rgengc_allow_full_mark: false} - # GC.config # # => {rgengc_allow_full_mark: false, implementation: "default"} # # All-Implementations Configuration