Skip to content

Commit 428937a

Browse files
committed
[DOC] Fix docs for GC.config
After commit 61fff8a, GC.config now returns the same hash for getting and setting.
1 parent 306df12 commit 428937a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

gc.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def self.stat_heap heap_name = nil, hash_or_key = nil
258258

259259
# call-seq:
260260
# GC.config -> hash
261-
# GC.config(hash_to_merge) -> merged_hash
261+
# GC.config(hash_to_merge) -> hash
262262
#
263263
# This method is implementation-specific to CRuby.
264264
#
@@ -274,15 +274,11 @@ def self.stat_heap heap_name = nil, hash_or_key = nil
274274
# With argument +hash_to_merge+ given,
275275
# merges that hash into the stored configuration hash;
276276
# ignores unknown hash keys;
277-
# returns the implementation-specific configuration hash (see below):
277+
# returns the configuration hash:
278278
#
279279
# GC.config(rgengc_allow_full_mark: false)
280-
# # => {rgengc_allow_full_mark: false}
281-
# GC.config
282280
# # => {rgengc_allow_full_mark: false, implementation: "default"}
283281
# GC.config(foo: 'bar')
284-
# # => {rgengc_allow_full_mark: false}
285-
# GC.config
286282
# # => {rgengc_allow_full_mark: false, implementation: "default"}
287283
#
288284
# <b>All-Implementations Configuration</b>

0 commit comments

Comments
 (0)