diff --git a/library/std/src/ffi/mod.rs b/library/std/src/ffi/mod.rs index d3971334462c0..7fda7497e616c 100644 --- a/library/std/src/ffi/mod.rs +++ b/library/std/src/ffi/mod.rs @@ -105,11 +105,11 @@ //! On all platforms, `OsStr` and `OsString` consist of a sequence of bytes; see [`OsString`] for //! more details on its encoding on different platforms. //! -//! `OsStr` provides the method [`OsStr::as_bytes`], which provides a zero-cost conversion to a -//! byte slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via +//! `OsStr` provides the method `OsStr::as_bytes`, which provides a zero-cost conversion to a byte +//! slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via //! `Deref`.) //! -//! `OsString` provides the method [`OsString::into_vec`], which provides a zero-cost conversion to +//! `OsString` provides the method `OsString::into_vec`, which provides a zero-cost conversion to //! `Vec`. //! //! ## On Unix diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index e4d0ea58d18db..b287c4053d93d 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -72,11 +72,11 @@ use crate::sys_common::{AsInner, FromInner, IntoInner}; /// /// # Conversions /// -/// `OsStr` provides the method [`OsStr::as_bytes`], which provides a zero-cost conversion to a -/// byte slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via +/// `OsStr` provides the method `OsStr::as_bytes`, which provides a zero-cost conversion to a byte +/// slice. (`OsString` provides this method as well, along with all other `OsStr` methods, via /// `Deref`.) /// -/// `OsString` provides the method [`OsString::into_vec`], which provides a zero-cost conversion to +/// `OsString` provides the method `OsString::into_vec`, which provides a zero-cost conversion to /// `Vec`. /// /// See the [module's toplevel documentation about conversions][conversions] for a discussion on