@@ -446,7 +446,7 @@ impl Hash for PrefixComponent<'_> {
446
446
/// (`/` or `\`).
447
447
///
448
448
/// 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`].
450
450
///
451
451
/// # Examples
452
452
///
@@ -1319,7 +1319,7 @@ impl PathBuf {
1319
1319
self . inner
1320
1320
}
1321
1321
1322
- /// Converts this `PathBuf` into a [boxed][` Box`] [`Path`].
1322
+ /// Converts this `PathBuf` into a [boxed]( Box) [`Path`].
1323
1323
#[ stable( feature = "into_boxed_path" , since = "1.20.0" ) ]
1324
1324
pub fn into_boxed_path ( self ) -> Box < Path > {
1325
1325
let rw = Box :: into_raw ( self . inner . into_boxed_os_str ( ) ) as * mut Path ;
@@ -1686,8 +1686,7 @@ pub struct Path {
1686
1686
inner : OsStr ,
1687
1687
}
1688
1688
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.
1691
1690
///
1692
1691
/// This `struct` is created by the [`strip_prefix`] method on [`Path`].
1693
1692
/// See its documentation for more.
@@ -2470,7 +2469,7 @@ impl Path {
2470
2469
fs:: metadata ( self ) . map ( |m| m. is_dir ( ) ) . unwrap_or ( false )
2471
2470
}
2472
2471
2473
- /// Converts a [`Box<Path>`][` Box`] into a [`PathBuf`] without copying or
2472
+ /// Converts a [`Box<Path>`]( Box) into a [`PathBuf`] without copying or
2474
2473
/// allocating.
2475
2474
#[ stable( feature = "into_boxed_path" , since = "1.20.0" ) ]
2476
2475
pub fn into_path_buf ( self : Box < Path > ) -> PathBuf {
@@ -2498,7 +2497,7 @@ impl fmt::Debug for Path {
2498
2497
///
2499
2498
/// A [`Path`] might contain non-Unicode data. This `struct` implements the
2500
2499
/// [`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`].
2502
2501
///
2503
2502
/// # Examples
2504
2503
///
0 commit comments