File tree 1 file changed +0
-6
lines changed
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -1169,7 +1169,6 @@ impl FusedIterator for Ancestors<'_> {}
1169
1169
/// path.push(r"..\otherdir");
1170
1170
/// path.push("system32");
1171
1171
///
1172
- /// path.set_extension(r"\..\temp");
1173
1172
#[ cfg_attr( not( test) , rustc_diagnostic_item = "PathBuf" ) ]
1174
1173
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1175
1174
pub struct PathBuf {
@@ -1456,8 +1455,6 @@ impl PathBuf {
1456
1455
/// If the file stem contains internal dots and `extension` is empty, part
1457
1456
/// of the old file stem will be considered the new [`self.extension`].
1458
1457
///
1459
- /// The new `extension` is not sanitized, so may include separators.
1460
- ///
1461
1458
/// See the examples below.
1462
1459
///
1463
1460
/// [`self.file_name`]: Path::file_name
@@ -1487,9 +1484,6 @@ impl PathBuf {
1487
1484
///
1488
1485
/// p.set_extension("");
1489
1486
/// assert_eq!(Path::new("/feel/the"), p.as_path());
1490
- ///
1491
- /// p.set_extension("/darkest.cookie");
1492
- /// assert_eq!(Path::new("/feel/the./darkest.cookie"), p.as_path());
1493
1487
/// ```
1494
1488
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1495
1489
pub fn set_extension < S : AsRef < OsStr > > ( & mut self , extension : S ) -> bool {
You can’t perform that action at this time.
0 commit comments