Skip to content

Commit 8002876

Browse files
committed
s/OsStr/&OsStr in docs to align with &str/String comparison
1 parent bac725e commit 8002876

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/ffi/os_str.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
3636
/// and platform-native string values, and in particular allowing a Rust string
3737
/// to be converted into an "OS" string with no cost if possible.
3838
///
39-
/// `OsString` is to [`OsStr`] as [`String`] is to [`&str`]: the former
39+
/// `OsString` is to [`&OsStr`] as [`String`] is to [`&str`]: the former
4040
/// in each pair are owned strings; the latter are borrowed
4141
/// references.
4242
///
@@ -64,6 +64,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
6464
/// the traits which `OsString` implements for conversions from/to native representations.
6565
///
6666
/// [`OsStr`]: struct.OsStr.html
67+
/// [`&OsStr`]: struct.OsStr.html
6768
/// [`From`]: ../convert/trait.From.html
6869
/// [`String`]: ../string/struct.String.html
6970
/// [`&str`]: ../primitive.str.html
@@ -84,7 +85,7 @@ pub struct OsString {
8485
/// This type represents a borrowed reference to a string in the operating system's preferred
8586
/// representation.
8687
///
87-
/// `OsStr` is to [`OsString`] as [`&str`] is to [`String`]: the former in each pair are borrowed
88+
/// `&OsStr` is to [`OsString`] as [`&str`] is to [`String`]: the former in each pair are borrowed
8889
/// references; the latter are owned strings.
8990
///
9091
/// See the [module's toplevel documentation about conversions][conversions] for a discussion on

0 commit comments

Comments
 (0)