mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02: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:
parent
306df12949
commit
428937a536
1 changed files with 2 additions and 6 deletions
8
gc.rb
8
gc.rb
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue