diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-06 21:37:42 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-06 21:43:32 +0900 |
commit | a58bbd6a512d95ca010d8bebae4fe590400c1413 (patch) | |
tree | a07ac45e8b385e5c476dea41255489a3cf11bbf0 /dir.c | |
parent | b66d7d9be56c27bc1b6ff5a6d8f0ca23de7ed28a (diff) | |
download | ruby-a58bbd6a512d95ca010d8bebae4fe590400c1413.tar.gz |
Use `rb_warn_deprecated` for `File.exists?` and `Dir.exists?`
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3498,7 +3498,7 @@ rb_file_directory_p(void) static VALUE rb_dir_exists_p(VALUE obj, VALUE fname) { - rb_warning("Dir.exists? is a deprecated name, use Dir.exist? instead"); + rb_warn_deprecated("", "Dir.exist?"); return rb_file_directory_p(obj, fname); } |