about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-09-10 15:57:50 +0200
committerGitHub <noreply@github.com>2016-09-10 15:57:50 +0200
commita221ad06f298081bc6547bb356c5411e16050b89 (patch)
tree78594a5778dacc83ff28f408c3865d92c5a69fd9 /src/libstd
parent30198bf6b65dabc704dfa25ca514e95c817831f6 (diff)
parentb99c5cf109925b3a13aa768ad4644000d926b851 (diff)
downloadrust-a221ad06f298081bc6547bb356c5411e16050b89.tar.gz
rust-a221ad06f298081bc6547bb356c5411e16050b89.zip
Rollup merge of #36314 - tshepang:not-needed, r=GuillaumeGomez
doc: we got coercion going on here, so no need to be this explicit
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 0a9c77f2538..bd27bcf48a0 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 {