mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Fixed ENV.rassoc
result order [ci skip]
This commit is contained in:
parent
eed7235e33
commit
036a68ae2c
1 changed files with 3 additions and 2 deletions
5
hash.c
5
hash.c
|
@ -6037,8 +6037,9 @@ env_has_value(VALUE dmy, VALUE obj)
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ENV.rassoc(value)
|
* ENV.rassoc(value)
|
||||||
*
|
*
|
||||||
* Returns a 2-element Array containing the value and name of the *first* *found* environment variable
|
* Returns a 2-element Array containing the name and value of the
|
||||||
* that has value +value+, if one exists:
|
* *first* *found* environment variable that has value +value+, if one
|
||||||
|
* exists:
|
||||||
* ENV.replace('foo' => '0', 'bar' => '0')
|
* ENV.replace('foo' => '0', 'bar' => '0')
|
||||||
* ENV.rassoc('0') # => ["bar", "0"]
|
* ENV.rassoc('0') # => ["bar", "0"]
|
||||||
* The order in which environment variables are examined is OS-dependent.
|
* The order in which environment variables are examined is OS-dependent.
|
||||||
|
|
Loading…
Reference in a new issue