Skip to content

Commit dd82599

Browse files
committed
fixup
1 parent affc077 commit dd82599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ impl Path {
15751575
/// let path = Path::new("/tmp/foo.rs");
15761576
///
15771577
/// let new_path = path.with_extension("txt");
1578-
/// assert_eq!(new_path, PathBuf::from("/tmp/foo.txt"));
1578+
/// assert_eq!(new_path, Path::new("/tmp/foo.txt"));
15791579
/// ```
15801580
#[stable(feature = "rust1", since = "1.0.0")]
15811581
pub fn with_extension<S: AsRef<OsStr>>(&self, extension: S) -> PathBuf {

0 commit comments

Comments
 (0)