Skip to content

Commit b3ae88f

Browse files
authored
Use assert! for Path exists example to check bool
1 parent d19d7e2 commit b3ae88f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,7 @@ impl Path {
24732473
///
24742474
/// ```no_run
24752475
/// use std::path::Path;
2476-
/// assert_eq!(Path::new("does_not_exist.txt").exists(), false);
2476+
/// assert!(!Path::new("does_not_exist.txt").exists());
24772477
/// ```
24782478
///
24792479
/// # See Also

0 commit comments

Comments
 (0)