summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index c576c85c0a..b234910d5d 100644
--- a/file.c
+++ b/file.c
@@ -372,6 +372,9 @@ apply2files(void (*func)(const char *, VALUE, void *), int argc, VALUE *argv, vo
* Returns the pathname used to create <i>file</i> as a string. Does
* not normalize the name.
*
+ * The pathname may not point the file corresponding to <i>file</i>.
+ * e.g. file has been moved, deleted, or created with <code>File::TMPFILE</code> option.
+ *
* File.new("testfile").path #=> "testfile"
* File.new("/tmp/../tmp/xxx", "w").path #=> "/tmp/../tmp/xxx"
*