Skip to content

Commit

Permalink
Fixup docs for PathBuf
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Sep 12, 2024
1 parent 22ffa3d commit 34e4b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 34e4b6d

Please sign in to comment.