diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-20 08:43:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-20 08:43:26 +0900 |
commit | 036a68ae2c6f3214cb5488da412444d773cbb65d (patch) | |
tree | 8dd8b5a7d37617c4ac12fffcb8e5d0de5ce32a49 /hash.c | |
parent | eed7235e33ab55209c33bf255949be4f26b8c7e2 (diff) | |
download | ruby-036a68ae2c6f3214cb5488da412444d773cbb65d.tar.gz |
[DOC] Fixed `ENV.rassoc` result order [ci skip]
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6037,8 +6037,9 @@ env_has_value(VALUE dmy, VALUE obj) * call-seq: * ENV.rassoc(value) * - * Returns a 2-element Array containing the value and name of the *first* *found* environment variable - * that has value +value+, if one exists: + * Returns a 2-element Array containing the name and value of the + * *first* *found* environment variable that has value +value+, if one + * exists: * ENV.replace('foo' => '0', 'bar' => '0') * ENV.rassoc('0') # => ["bar", "0"] * The order in which environment variables are examined is OS-dependent. |