From 428937a5365192e5cf2ef97d2191e25cc9bd963f Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 11 Aug 2025 10:40:38 -0400 Subject: [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 603520df53..ac04cb2e25 100644 --- a/gc.rb +++ b/gc.rb @@ -258,7 +258,7 @@ module GC # 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 @@ module GC # 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 -- cgit v1.2.3