Rollup merge of #75289 - pickfire:patch-12, r=jonas-schievink
Remove ambiguity from PathBuf pop example
This commit is contained in:
commit
3038ecb07b
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue