diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-17 17:17:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-19 09:52:17 +0900 |
commit | c6c67254fb17b3196a7b0d3fda4650f6b20a467d (patch) | |
tree | 8991858d6822ea27d9bc492080d2af00236c5ea5 /hash.c | |
parent | 7aa8a786740fd84bd718b0c055f190b25a8f0277 (diff) |
Added rb_warn_deprecated
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |