summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-21 17:06:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-21 17:06:31 +0000
commit22a961383a4c3519f5d807f0986168ec1ec2bebf (patch)
treee37019c56ba76b24aa2d730e26f7b75a9688d0e4 /file.c
parent1ca90beaac396f880a39c964b38c94ea09189da2 (diff)
dir.c: warn Dir.exists?
* dir.c (rb_dir_exists_p): warn deprecated name. [Bug #9041] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 a6b5373f09..acbaa5c5f4 100644
--- a/file.c
+++ b/file.c
@@ -1409,7 +1409,7 @@ rb_file_exists_p(VALUE obj, VALUE fname)
RTEST(rb_class_inherited_p(obj, rb_cFile)))) {
s = "File.";
}
- rb_warning("%sexists? is deprecated name, use %sexist? instead", s, s);
+ rb_warning("%sexists? is a deprecated name, use %sexist? instead", s, s);
return rb_file_exist_p(obj, fname);
}