aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-20 08:43:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-20 08:43:26 +0900
commit036a68ae2c6f3214cb5488da412444d773cbb65d (patch)
tree8dd8b5a7d37617c4ac12fffcb8e5d0de5ce32a49 /hash.c
parenteed7235e33ab55209c33bf255949be4f26b8c7e2 (diff)
downloadruby-036a68ae2c6f3214cb5488da412444d773cbb65d.tar.gz
[DOC] Fixed `ENV.rassoc` result order [ci skip]
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 8145dde6bc..10923f67ff 100644
--- a/hash.c
+++ b/hash.c
@@ -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.