summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-06 12:37:42 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-06 12:43:32 (GMT)
commita58bbd6a512d95ca010d8bebae4fe590400c1413 (patch)
treea07ac45e8b385e5c476dea41255489a3cf11bbf0 /dir.c
parentb66d7d9be56c27bc1b6ff5a6d8f0ca23de7ed28a (diff)
Use `rb_warn_deprecated` for `File.exists?` and `Dir.exists?`
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 5013b9b..5bd4ff4 100644
--- a/dir.c
+++ b/dir.c
@@ -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);
}