@@ -1154,7 +1154,7 @@ impl FusedIterator for Ancestors<'_> {} |
|
|
1154 |
1154 |
/// |
1155 |
1155 |
/// Which method works best depends on what kind of situation you're in. |
1156 |
1156 |
/// |
1157 |
|
-/// Note that `PathBuf`` does not always sanitize arguments, for example |
|
1157 |
+/// Note that `PathBuf` does not always sanitize arguments, for example |
1158 |
1158 |
/// [`push`] allows paths built from strings which include separators: |
1159 |
1159 |
/// |
1160 |
1160 |
/// use std::path::PathBuf; |
@@ -1167,7 +1167,7 @@ impl FusedIterator for Ancestors<'_> {} |
|
|
1167 |
1167 |
/// path.push("system32"); |
1168 |
1168 |
/// |
1169 |
1169 |
/// The behaviour of `PathBuf` may be changed to a panic on such inputs |
1170 |
|
-/// in the future. The [`extend`] method should be used to add multi-part paths. |
|
1170 |
+/// in the future. [`Extend::extend`] should be used to add multi-part paths. |
1171 |
1171 |
#[cfg_attr(not(test), rustc_diagnostic_item = "PathBuf")] |
1172 |
1172 |
#[stable(feature = "rust1", since = "1.0.0")] |
1173 |
1173 |
pub struct PathBuf { |