@@ -446,7 +446,7 @@ impl Hash for PrefixComponent<'_> {
446446/// (`/` or `\`).
447447///
448448/// This `enum` is created by iterating over [`Components`], which in turn is
449- /// created by the [`components`][` Path::components`] method on [`Path`].
449+ /// created by the [`components`]( Path::components) method on [`Path`].
450450///
451451/// # Examples
452452///
@@ -1319,7 +1319,7 @@ impl PathBuf {
13191319 self . inner
13201320 }
13211321
1322- /// Converts this `PathBuf` into a [boxed][` Box`] [`Path`].
1322+ /// Converts this `PathBuf` into a [boxed]( Box) [`Path`].
13231323 #[ stable( feature = "into_boxed_path" , since = "1.20.0" ) ]
13241324 pub fn into_boxed_path ( self ) -> Box < Path > {
13251325 let rw = Box :: into_raw ( self . inner . into_boxed_os_str ( ) ) as * mut Path ;
@@ -1686,8 +1686,7 @@ pub struct Path {
16861686 inner : OsStr ,
16871687}
16881688
1689- /// An error returned from [`Path::strip_prefix`][`strip_prefix`] if the prefix
1690- /// was not found.
1689+ /// An error returned from [`Path::strip_prefix`] if the prefix was not found.
16911690///
16921691/// This `struct` is created by the [`strip_prefix`] method on [`Path`].
16931692/// See its documentation for more.
@@ -2470,7 +2469,7 @@ impl Path {
24702469 fs:: metadata ( self ) . map ( |m| m. is_dir ( ) ) . unwrap_or ( false )
24712470 }
24722471
2473- /// Converts a [`Box<Path>`][` Box`] into a [`PathBuf`] without copying or
2472+ /// Converts a [`Box<Path>`]( Box) into a [`PathBuf`] without copying or
24742473 /// allocating.
24752474 #[ stable( feature = "into_boxed_path" , since = "1.20.0" ) ]
24762475 pub fn into_path_buf ( self : Box < Path > ) -> PathBuf {
@@ -2498,7 +2497,7 @@ impl fmt::Debug for Path {
24982497///
24992498/// A [`Path`] might contain non-Unicode data. This `struct` implements the
25002499/// [`Display`] trait in a way that mitigates that. It is created by the
2501- /// [`display`][` Path::display`] method on [`Path`].
2500+ /// [`display`]( Path::display) method on [`Path`].
25022501///
25032502/// # Examples
25042503///
0 commit comments