From 036a68ae2c6f3214cb5488da412444d773cbb65d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 20 Feb 2020 08:43:26 +0900 Subject: [PATCH] [DOC] Fixed `ENV.rassoc` result order [ci skip] --- hash.c | 5 +++-- 1 file 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.