mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] fixed return value of ENV.clone [ci skip]
This commit is contained in:
parent
fb978fab6d
commit
189f154786
1 changed files with 3 additions and 3 deletions
6
hash.c
6
hash.c
|
@ -6489,10 +6489,10 @@ env_update(VALUE env, VALUE hash)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* ENV.clone(freeze: nil) -> copy of ENV
|
||||
* ENV.clone(freeze: nil) -> ENV
|
||||
*
|
||||
* Returns a clone of ENV, but warns because the ENV data is shared with the
|
||||
* clone.
|
||||
* Returns ENV itself, and warns because ENV is a wrapper for the
|
||||
* process-wide environment variables and a clone is useless.
|
||||
* If +freeze+ keyword is given and not +nil+ or +false+, raises ArgumentError.
|
||||
* If +freeze+ keyword is given and +true+, raises TypeError, as ENV storage
|
||||
* cannot be frozen.
|
||||
|
|
Loading…
Add table
Reference in a new issue