diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 392c815ef2803..26a01f69c9959 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -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