summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-07 12:43:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-07 12:49:33 +0900
commit67f616c523023080c037784ff49739c76f108741 (patch)
tree317aae188f7885b64b8d62e2d6dd6832a67d993d /file.c
parentd827c718db32c07f025f88fd792e9407e19e66e1 (diff)
Show the deprecated name in the warning
Fixed up a58bbd6a512d95ca010d8bebae4fe590400c1413.
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 6d8adac4c4b..e14a658fa9b 100644
--- a/file.c
+++ b/file.c
@@ -1786,7 +1786,7 @@ rb_file_exists_p(VALUE obj, VALUE fname)
RTEST(rb_class_inherited_p(obj, rb_cFile)))) {
s = "File.exist?";
}
- rb_warn_deprecated("", s);
+ rb_warn_deprecated("%.*ss?", s, (int)(strlen(s)-1), s);
return rb_file_exist_p(obj, fname);
}