Rollup merge of #75288 - pickfire:patch-11, r=jonas-schievink

Use assert! for Path exists example to check bool
This commit is contained in:
Yuki Okushi 2020-08-09 06:41:32 +09:00 committed by GitHub
commit 6baee9557a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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