doc: we got coercion going on here, so no need to be this explicit
This commit is contained in:
parent
689c6c48ec
commit
b99c5cf109
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue