summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-17 17:17:07 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-19 09:52:17 +0900
commitc6c67254fb17b3196a7b0d3fda4650f6b20a467d (patch)
tree8991858d6822ea27d9bc492080d2af00236c5ea5 /hash.c
parent7aa8a786740fd84bd718b0c055f190b25a8f0277 (diff)
Added rb_warn_deprecated
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 27d1d03848..79f69f63be 100644
--- a/hash.c
+++ b/hash.c
@@ -2245,7 +2245,7 @@ rb_hash_key(VALUE hash, VALUE value)
static VALUE
rb_hash_index(VALUE hash, VALUE value)
{
- rb_warn("Hash#index is deprecated; use Hash#key");
+ rb_warn_deprecated("Hash#index", "Hash#key");
return rb_hash_key(hash, value);
}
@@ -5861,7 +5861,7 @@ env_key(VALUE dmy, VALUE value)
static VALUE
env_index(VALUE dmy, VALUE value)
{
- rb_warn("ENV.index is deprecated; use ENV.key");
+ rb_warn_deprecated("ENV.index", "ENV.key");
return env_key(dmy, value);
}