Rollup merge of #75288 - pickfire:patch-11, r=jonas-schievink
Use assert! for Path exists example to check bool
This commit is contained in:
commit
6baee9557a
1 changed files with 1 additions and 1 deletions
|
|
@ -2481,7 +2481,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…
Add table
Add a link
Reference in a new issue