about summary refs log tree commit diff
diff options
context:
space:
mode:
authormuvlon <muvlon@hentzes.de>2018-01-11 22:01:32 +0100
committermuvlon <muvlon@hentzes.de>2018-01-11 22:07:06 +0100
commit80028760ed111b800decee876af59741f8765cce (patch)
treec26ff36846d91b89e062f61db78f0224dff7a21b
parentbac725ecdf31fe8ac5e7ddcd45d2c316d9aff674 (diff)
downloadrust-80028760ed111b800decee876af59741f8765cce.tar.gz
rust-80028760ed111b800decee876af59741f8765cce.zip
s/OsStr/&OsStr in docs to align with &str/String comparison
-rw-r--r--src/libstd/ffi/os_str.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs
index 91e3855f536..3959e8533be 100644
--- a/src/libstd/ffi/os_str.rs
+++ b/src/libstd/ffi/os_str.rs
@@ -36,7 +36,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
 /// and platform-native string values, and in particular allowing a Rust string
 /// to be converted into an "OS" string with no cost if possible.
 ///
-/// `OsString` is to [`OsStr`] as [`String`] is to [`&str`]: the former
+/// `OsString` is to [`&OsStr`] as [`String`] is to [`&str`]: the former
 /// in each pair are owned strings; the latter are borrowed
 /// references.
 ///
@@ -64,6 +64,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
 /// the traits which `OsString` implements for conversions from/to native representations.
 ///
 /// [`OsStr`]: struct.OsStr.html
+/// [`&OsStr`]: struct.OsStr.html
 /// [`From`]: ../convert/trait.From.html
 /// [`String`]: ../string/struct.String.html
 /// [`&str`]: ../primitive.str.html
@@ -84,7 +85,7 @@ pub struct OsString {
 /// This type represents a borrowed reference to a string in the operating system's preferred
 /// representation.
 ///
-/// `OsStr` is to [`OsString`] as [`&str`] is to [`String`]: the former in each pair are borrowed
+/// `&OsStr` is to [`OsString`] as [`&str`] is to [`String`]: the former in each pair are borrowed
 /// references; the latter are owned strings.
 ///
 /// See the [module's toplevel documentation about conversions][conversions] for a discussion on