summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
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.