doc: we got coercion going on here, so no need to be this explicit

This commit is contained in:
Tshepang Lekhonkhobe 2016-09-07 04:15:56 +02:00
parent 689c6c48ec
commit b99c5cf109

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 {