diff options
| author | Donnie Bishop <donnie.a.bishop@gmail.com> | 2017-03-31 23:22:22 -0400 |
|---|---|---|
| committer | Donnie Bishop <donnie.a.bishop@gmail.com> | 2017-03-31 23:22:22 -0400 |
| commit | 5198072c3a70b5b61271b79d2b92cc751bedafd8 (patch) | |
| tree | 4e02e6d5109d422febc0f57348a4321c39a38a01 /src/libcore | |
| parent | 40feadb966f825de7aa54a3138416c906b60f54a (diff) | |
| download | rust-5198072c3a70b5b61271b79d2b92cc751bedafd8.tar.gz rust-5198072c3a70b5b61271b79d2b92cc751bedafd8.zip | |
Added links to from_utf8 methods in Utf8Error
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/str/mod.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 5056adeaeee..46264ea7b4f 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 { |
