about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-08-09 06:41:32 +0900
committerGitHub <noreply@github.com>2020-08-09 06:41:32 +0900
commit6baee9557a52508ff6449d7df975f207c81e5b9a (patch)
tree1cb33158193f857e6a74d04afc07070b89cf1657
parent42e163bf40b4fb1c129e94b2f508249d42abefc6 (diff)
parentb3ae88f6bba244e8b372ed0fc20b000b145ddff0 (diff)
downloadrust-6baee9557a52508ff6449d7df975f207c81e5b9a.tar.gz
rust-6baee9557a52508ff6449d7df975f207c81e5b9a.zip
Rollup merge of #75288 - pickfire:patch-11, r=jonas-schievink
Use assert! for Path exists example to check bool
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 79944d82fea..29cd209e702 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -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