about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-04-05 12:44:29 -0400
committerGitHub <noreply@github.com>2017-04-05 12:44:29 -0400
commitfd474f0b2ec94f5ea2e1dd17c98b310b9c918c8d (patch)
treeadcab8a5bc494a4453164fc70f948bdf50a4c430 /src/libcore/str
parent469fe7a1a3878342bce0e20100b526cc3a54b7c3 (diff)
parent5198072c3a70b5b61271b79d2b92cc751bedafd8 (diff)
downloadrust-fd474f0b2ec94f5ea2e1dd17c98b310b9c918c8d.tar.gz
rust-fd474f0b2ec94f5ea2e1dd17c98b310b9c918c8d.zip
Rollup merge of #40992 - donniebishop:utf8err_linking, r=alexcrichton
Added links to from_utf8 methods in Utf8Error

Referencing  #29375. Linked the `from_utf8` methods for both `String` and `str` in the description. Also linked the `u8` to its documentation
Diffstat (limited to 'src/libcore/str')
-rw-r--r--src/libcore/str/mod.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index f75a1f7ab6e..a31c7347a60 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -152,11 +152,16 @@ impl fmt::Display for ParseBoolError {
 Section: Creating a string
 */
 
-/// Errors which can occur when attempting to interpret a sequence of `u8`
+/// Errors which can occur when attempting to interpret a sequence of [`u8`]
 /// as a string.
 ///
-/// As such, the `from_utf8` family of functions and methods for both `String`s
-/// and `&str`s make use of this error, for example.
+/// [`u8`]: ../../std/primitive.u8.html
+///
+/// As such, the `from_utf8` family of functions and methods for both [`String`]s
+/// and [`&str`]s make use of this error, for example.
+///
+/// [`String`]: ../../std/string/struct.String.html#method.from_utf8
+/// [`&str`]: ../../std/str/fn.from_utf8.html
 #[derive(Copy, Eq, PartialEq, Clone, Debug)]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct Utf8Error {