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:
commit
a221ad06f2
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user