Rollup merge of #36314 - tshepang:not-needed, r=GuillaumeGomez

doc: we got coercion going on here, so no need to be this explicit
This commit is contained in:
Guillaume Gomez 2016-09-10 15:57:50 +02:00 committed by GitHub
commit a221ad06f2
1 changed files with 2 additions and 2 deletions

View File

@ -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 {