summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-08-11 10:40:38 -0400
committerPeter Zhu <peter@peterzhu.ca>2025-08-11 22:14:57 -0400
commit428937a5365192e5cf2ef97d2191e25cc9bd963f (patch)
tree8546cc219fe819dff580a878798857b208fb0678
parent306df1294985f6e4404046fc4f17f4c8082af152 (diff)
[DOC] Fix docs for GC.config
After commit 61fff8a, GC.config now returns the same hash for getting and setting.
-rw-r--r--gc.rb8
1 files 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"}
#
# <b>All-Implementations Configuration</b>