diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 392c815ef2803..f6fa877400ee4 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1232,10 +1232,10 @@ impl PathBuf { /// ``` /// use std::path::{Path, PathBuf}; /// - /// let mut p = PathBuf::from("/test/test.rs"); + /// let mut p = PathBuf::from("/spirited/away.rs"); /// /// p.pop(); - /// assert_eq!(Path::new("/test"), p); + /// assert_eq!(Path::new("/spirited"), p); /// p.pop(); /// assert_eq!(Path::new("/"), p); /// ```