diff options
| author | Matt Brubeck <mbrubeck@limpet.net> | 2015-11-10 11:17:26 -0800 |
|---|---|---|
| committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-11-10 11:17:26 -0800 |
| commit | adbd38d85bea555bfe0434e489088a8b06445522 (patch) | |
| tree | 169f07c88abffdf75f4ac51eb6268d7205161cde /src/libstd | |
| parent | 71409184dc00604537ce03312dc17ba986c329d9 (diff) | |
| download | rust-adbd38d85bea555bfe0434e489088a8b06445522.tar.gz rust-adbd38d85bea555bfe0434e489088a8b06445522.zip | |
[docs] Update references to renamed fs::stat function
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 3 | ||||
| -rw-r--r-- | src/libstd/path.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 6178f1bbb8e..c62bf561655 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -1212,7 +1212,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 fe12b671235..8c227a93604 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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() |
