about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-09-11 22:46:06 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-09-11 22:46:06 -0700
commit45c471b1f3421fff4f29fae80d507831c836f40f (patch)
tree9ceed34abc47cbb903725494f5bc5a863a627b3c /library/std/src/path.rs
parentd6ef1b99e83014122dbd7f4fde8a3487b05ea9b9 (diff)
downloadrust-45c471b1f3421fff4f29fae80d507831c836f40f.tar.gz
rust-45c471b1f3421fff4f29fae80d507831c836f40f.zip
Fixup docs for PathBuf
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index e7fd2e4ddee..c94df9b5366 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -1154,7 +1154,7 @@ impl FusedIterator for Ancestors<'_> {}
 ///
 /// Which method works best depends on what kind of situation you're in.
 ///
-/// Note that `PathBuf`` does not always sanitize arguments, for example
+/// Note that `PathBuf` does not always sanitize arguments, for example
 /// [`push`] allows paths built from strings which include separators:
 ///
 /// use std::path::PathBuf;
@@ -1167,7 +1167,7 @@ impl FusedIterator for Ancestors<'_> {}
 /// path.push("system32");
 ///
 /// The behaviour of `PathBuf` may be changed to a panic on such inputs
-/// in the future. The [`extend`] method should be used to add multi-part paths.
+/// in the future. [`Extend::extend`] should be used to add multi-part paths.
 #[cfg_attr(not(test), rustc_diagnostic_item = "PathBuf")]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct PathBuf {