Skip to content

Commit af7b7da

Browse files
committed
Work around rustdoc ICE by dropping some intra-doc links
1 parent 2b80b80 commit af7b7da

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

library/std/src/ffi/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@
105105
//! On all platforms, `OsStr` and `OsString` consist of a sequence of bytes; see [`OsString`] for
106106
//! more details on its encoding on different platforms.
107107
//!
108-
//! `OsStr` provides the method [`OsStr::as_bytes`], which provides a zero-cost conversion to a
109-
//! byte slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via
108+
//! `OsStr` provides the method `OsStr::as_bytes`, which provides a zero-cost conversion to a byte
109+
//! slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via
110110
//! `Deref`.)
111111
//!
112-
//! `OsString` provides the method [`OsString::into_vec`], which provides a zero-cost conversion to
112+
//! `OsString` provides the method `OsString::into_vec`, which provides a zero-cost conversion to
113113
//! `Vec<u8>`.
114114
//!
115115
//! ## On Unix

library/std/src/ffi/os_str.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ use crate::sys_common::{AsInner, FromInner, IntoInner};
7272
///
7373
/// # Conversions
7474
///
75-
/// `OsStr` provides the method [`OsStr::as_bytes`], which provides a zero-cost conversion to a
76-
/// byte slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via
75+
/// `OsStr` provides the method `OsStr::as_bytes`, which provides a zero-cost conversion to a byte
76+
/// slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via
7777
/// `Deref`.)
7878
///
79-
/// `OsString` provides the method [`OsString::into_vec`], which provides a zero-cost conversion to
79+
/// `OsString` provides the method `OsString::into_vec`, which provides a zero-cost conversion to
8080
/// `Vec<u8>`.
8181
///
8282
/// See the [module's toplevel documentation about conversions][conversions] for a discussion on

0 commit comments

Comments
 (0)