about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstd/fs.rs3
-rw-r--r--src/libstd/path.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs
index 657396df22a..191c7dc5806 100644
--- a/src/libstd/fs.rs
+++ b/src/libstd/fs.rs
@@ -1211,7 +1211,8 @@ pub trait PathExt {
     fn read_dir(&self) -> io::Result<ReadDir>;
 
     /// Boolean value indicator whether the underlying file exists on the local
-    /// filesystem. Returns false in exactly the cases where `fs::stat` fails.
+    /// filesystem. Returns false in exactly the cases where `fs::metadata`
+    /// fails.
     fn exists(&self) -> bool;
 
     /// Whether the underlying implementation (be it a file path, or something
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 6b5e16ae113..f97ad5b8835 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1832,7 +1832,8 @@ impl Path {
     }
 
     /// Boolean value indicator whether the underlying file exists on the local
-    /// filesystem. Returns false in exactly the cases where `fs::stat` fails.
+    /// filesystem. Returns false in exactly the cases where `fs::metadata`
+    /// fails.
     #[stable(feature = "path_ext", since = "1.5.0")]
     pub fn exists(&self) -> bool {
         fs::metadata(self).is_ok()