[DOC] Fix docs for GC.config

After commit 61fff8a, GC.config now returns the same hash for getting and
setting.
This commit is contained in:
Peter Zhu 2025-08-11 10:40:38 -04:00
parent 306df12949
commit 428937a536

8
gc.rb
View file

@ -258,7 +258,7 @@ module GC
# call-seq: # call-seq:
# GC.config -> hash # GC.config -> hash
# GC.config(hash_to_merge) -> merged_hash # GC.config(hash_to_merge) -> hash
# #
# This method is implementation-specific to CRuby. # This method is implementation-specific to CRuby.
# #
@ -274,15 +274,11 @@ module GC
# With argument +hash_to_merge+ given, # With argument +hash_to_merge+ given,
# merges that hash into the stored configuration hash; # merges that hash into the stored configuration hash;
# ignores unknown hash keys; # ignores unknown hash keys;
# returns the implementation-specific configuration hash (see below): # returns the configuration hash:
# #
# GC.config(rgengc_allow_full_mark: false) # GC.config(rgengc_allow_full_mark: false)
# # => {rgengc_allow_full_mark: false}
# GC.config
# # => {rgengc_allow_full_mark: false, implementation: "default"} # # => {rgengc_allow_full_mark: false, implementation: "default"}
# GC.config(foo: 'bar') # GC.config(foo: 'bar')
# # => {rgengc_allow_full_mark: false}
# GC.config
# # => {rgengc_allow_full_mark: false, implementation: "default"} # # => {rgengc_allow_full_mark: false, implementation: "default"}
# #
# <b>All-Implementations Configuration</b> # <b>All-Implementations Configuration</b>