summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/file.c b/file.c
index 4fc5f771cf7..34b26934303 100644
--- a/file.c
+++ b/file.c
@@ -1429,7 +1429,6 @@ rb_file_chardev_p(VALUE obj, VALUE fname)
/*
* call-seq:
* File.exist?(file_name) -> true or false
- * File.exists?(file_name) -> true or false
*
* Return <code>true</code> if the named file exists.
*
@@ -1447,6 +1446,12 @@ rb_file_exist_p(VALUE obj, VALUE fname)
return Qtrue;
}
+/*
+ * call-seq:
+ * File.exists?(file_name) -> true or false
+ *
+ * Deprecated method. Don't use.
+ */
static VALUE
rb_file_exists_p(VALUE obj, VALUE fname)
{