about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-11-11 11:09:43 +0000
committerbors <bors@rust-lang.org>2015-11-11 11:09:43 +0000
commit7d3477ce094de69823006d0a2ca147b970eee2e2 (patch)
tree2e121cd827fb874f2ee276239ff8371ecfc0990e /src/libstd
parent19bdf87e8c87ca51512f1f28acd395a8f4cbe76a (diff)
parentadbd38d85bea555bfe0434e489088a8b06445522 (diff)
downloadrust-7d3477ce094de69823006d0a2ca147b970eee2e2.tar.gz
rust-7d3477ce094de69823006d0a2ca147b970eee2e2.zip
Auto merge of #29755 - mbrubeck:stat-doc, r=steveklabnik
Moved from #29753. r? @steveklabnik
Diffstat (limited to 'src/libstd')
-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()