diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 79944d82feab..29cd209e702e 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