[前][次][番号順一覧][スレッド一覧]

ruby-changes:60123

From: Nobuyoshi <ko1@a...>
Date: Thu, 20 Feb 2020 08:46:22 +0900 (JST)
Subject: [ruby-changes:60123] 036a68ae2c (master): [DOC] Fixed `ENV.rassoc` result order [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=036a68ae2c

From 036a68ae2c6f3214cb5488da412444d773cbb65d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 20 Feb 2020 08:43:26 +0900
Subject: [DOC] Fixed `ENV.rassoc` result order [ci skip]


diff --git a/hash.c b/hash.c
index 8145dde..10923f6 100644
--- a/hash.c
+++ b/hash.c
@@ -6037,8 +6037,9 @@ env_has_value(VALUE dmy, VALUE obj) https://github.com/ruby/ruby/blob/trunk/hash.c#L6037
  * 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.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]