Skip to content

Commit 7d41ebf

Browse files
committed
Auto merge of #62464 - GuillaumeGomez:add-missing-urls-osstr, r=QuietMisdreavus
Add missing urls for osstr r? @QuietMisdreavus
2 parents 03a68d6 + 4f1127a commit 7d41ebf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libstd/ffi/os_str.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use crate::sys_common::{AsInner, IntoInner, FromInner};
3232
/// in each pair are owned strings; the latter are borrowed
3333
/// references.
3434
///
35-
/// Note, `OsString` and `OsStr` internally do not necessarily hold strings in
35+
/// Note, `OsString` and [`OsStr`] internally do not necessarily hold strings in
3636
/// the form native to the platform; While on Unix, strings are stored as a
3737
/// sequence of 8-bit values, on Windows, where strings are 16-bit value based
3838
/// as just discussed, strings are also actually stored as a sequence of 8-bit
@@ -667,10 +667,11 @@ impl From<&OsStr> for Box<OsStr> {
667667

668668
#[stable(feature = "os_string_from_box", since = "1.18.0")]
669669
impl From<Box<OsStr>> for OsString {
670-
/// Converts a `Box<OsStr>` into a `OsString` without copying or allocating.
670+
/// Converts a [`Box`]`<`[`OsStr`]`>` into a `OsString` without copying or
671+
/// allocating.
671672
///
672673
/// [`Box`]: ../boxed/struct.Box.html
673-
/// [`OsString`]: ../ffi/struct.OsString.html
674+
/// [`OsStr`]: ../ffi/struct.OsStr.html
674675
fn from(boxed: Box<OsStr>) -> OsString {
675676
boxed.into_os_string()
676677
}

0 commit comments

Comments
 (0)