summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
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 6d8adac..e14a658 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);
}