[docs] Update references to renamed fs::stat function

This commit is contained in:
Matt Brubeck
2015-11-10 11:17:26 -08:00
parent 71409184dc
commit adbd38d85b
2 changed files with 4 additions and 2 deletions

View File

@@ -1742,7 +1742,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()