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 /enumerator.c | |
parent | 7aa8a786740fd84bd718b0c055f190b25a8f0277 (diff) | |
download | ruby-c6c67254fb17b3196a7b0d3fda4650f6b20a467d.tar.gz |
Added rb_warn_deprecated
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c index e85c911e4a..73bca61df2 100644 --- a/enumerator.c +++ b/enumerator.c @@ -466,7 +466,7 @@ enumerator_initialize(int argc, VALUE *argv, VALUE obj) } else { rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS); - rb_warn("Enumerator.new without a block is deprecated; use Object#to_enum"); + rb_warn_deprecated("Enumerator.new without a block", "Object#to_enum"); recv = *argv++; if (--argc) { meth = *argv++; |