Use assert! for Path exists example to check bool

This commit is contained in:
Ivan Tham 2020-08-08 18:23:18 +08:00 committed by GitHub
parent d19d7e2755
commit b3ae88f6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2473,7 +2473,7 @@ impl Path {
///
/// ```no_run
/// use std::path::Path;
/// assert_eq!(Path::new("does_not_exist.txt").exists(), false);
/// assert!(!Path::new("does_not_exist.txt").exists());
/// ```
///
/// # See Also