Skip to content

Commit

Permalink
Use assert! for Path exists example to check bool
Browse files Browse the repository at this point in the history
  • Loading branch information
pickfire authored Aug 8, 2020
1 parent d19d7e2 commit b3ae88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3ae88f

Please sign in to comment.