From 4b15b809eb12f674842855676171f6998bc9ca42 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 8 Aug 2020 18:28:55 +0800 Subject: [PATCH] Remove abmiguity from PathBuf pop example --- library/std/src/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); /// ```