]> git.lizzy.rs Git - rust.git/commitdiff
Added links to from_utf8 methods in Utf8Error
authorDonnie Bishop <donnie.a.bishop@gmail.com>
Sat, 1 Apr 2017 03:22:22 +0000 (23:22 -0400)
committerDonnie Bishop <donnie.a.bishop@gmail.com>
Sat, 1 Apr 2017 03:22:22 +0000 (23:22 -0400)
src/libcore/str/mod.rs

index 5056adeaeeec3b3d668d217892e037c4ecc274ef..46264ea7b4f6d07a9068daf241b7ac564fed7c83 100644 (file)
@@ -152,11 +152,16 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
 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 {