Skip to content

Commit 6baee95

Browse files
authored
Rollup merge of #75288 - pickfire:patch-11, r=jonas-schievink
Use assert! for Path exists example to check bool
2 parents 42e163b + b3ae88f commit 6baee95

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
@@ -2481,7 +2481,7 @@ impl Path {
24812481
///
24822482
/// ```no_run
24832483
/// use std::path::Path;
2484-
/// assert_eq!(Path::new("does_not_exist.txt").exists(), false);
2484+
/// assert!(!Path::new("does_not_exist.txt").exists());
24852485
/// ```
24862486
///
24872487
/// # See Also

0 commit comments

Comments
 (0)