From b99c5cf109925b3a13aa768ad4644000d926b851 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Wed, 7 Sep 2016 04:15:56 +0200 Subject: [PATCH] doc: we got coercion going on here, so no need to be this explicit --- src/libstd/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 9a5b1da0f08f4..12f8619cde64a 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1169,9 +1169,9 @@ impl PathBuf { /// let mut p = PathBuf::from("/test/test.rs"); /// /// p.pop(); - /// assert_eq!(Path::new("/test"), p.as_path()); + /// assert_eq!(Path::new("/test"), p); /// p.pop(); - /// assert_eq!(Path::new("/"), p.as_path()); + /// assert_eq!(Path::new("/"), p); /// ``` #[stable(feature = "rust1", since = "1.0.0")] pub fn pop(&mut self) -> bool {