Skip to content

Commit 3038ecb

Browse files
authored
Rollup merge of #75289 - pickfire:patch-12, r=jonas-schievink
Remove ambiguity from PathBuf pop example
2 parents 6baee95 + 4b15b80 commit 3038ecb

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)