Update the documentation to point to open instead of is_file and is_dir

This commit is contained in:
Alexis Bourget
2020-06-27 18:10:58 +02:00
parent c1243dbcd9
commit d25d6c5bd8
2 changed files with 15 additions and 11 deletions

View File

@@ -2506,7 +2506,7 @@ impl Path {
/// check errors, call [`fs::metadata`] and handle its Result. Then call
/// [`fs::Metadata::is_file`] if it was Ok.
///
/// Note that the explanation about using `!is_dir` instead of `is_file`
/// Note that the explanation about using `open` instead of `is_file`
/// that is present in the [`fs::Metadata`] documentation also applies here.
///
/// [`fs::metadata`]: ../../std/fs/fn.metadata.html