Skip to content

Commit 4b15b80

Browse files
authored
Remove abmiguity from PathBuf pop example
1 parent d19d7e2 commit 4b15b80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,10 +1232,10 @@ impl PathBuf {
12321232
/// ```
12331233
/// use std::path::{Path, PathBuf};
12341234
///
1235-
/// let mut p = PathBuf::from("/test/test.rs");
1235+
/// let mut p = PathBuf::from("/spirited/away.rs");
12361236
///
12371237
/// p.pop();
1238-
/// assert_eq!(Path::new("/test"), p);
1238+
/// assert_eq!(Path::new("/spirited"), p);
12391239
/// p.pop();
12401240
/// assert_eq!(Path::new("/"), p);
12411241
/// ```

0 commit comments

Comments
 (0)