Use assert! for Path exists example to check bool
This commit is contained in:
parent
d19d7e2755
commit
b3ae88f6bb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user