mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Remove abmiguity from PathBuf pop example
This commit is contained in:
parent
d19d7e2755
commit
4b15b809eb
@ -1232,10 +1232,10 @@ impl PathBuf {
|
||||
/// ```
|
||||
/// use std::path::{Path, PathBuf};
|
||||
///
|
||||
/// let mut p = PathBuf::from("/test/test.rs");
|
||||
/// let mut p = PathBuf::from("/spirited/away.rs");
|
||||
///
|
||||
/// p.pop();
|
||||
/// assert_eq!(Path::new("/test"), p);
|
||||
/// assert_eq!(Path::new("/spirited"), p);
|
||||
/// p.pop();
|
||||
/// assert_eq!(Path::new("/"), p);
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user