mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
[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:
1 parent
306df12949
commit
428937a536
1 file changed
+2
-6
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user