44//!
55//! For more details, see the [`std::str`] module.
66//!
7- //! [`std::str`]: self
7+ //! [`std::str`]: ../../std/str/index.html
88
99#![ stable( feature = "rust1" , since = "1.0.0" ) ]
1010
@@ -84,9 +84,6 @@ pub trait FromStr: Sized {
8484 /// when the string is ill-formatted return an error specific to the
8585 /// inside [`Err`]. The error type is specific to implementation of the trait.
8686 ///
87- /// [`Ok`]: ../../std/result/enum.Result.html#variant.Ok
88- /// [`Err`]: ../../std/result/enum.Result.html#variant.Err
89- ///
9087 /// # Examples
9188 ///
9289 /// Basic usage with [`i32`][ithirtytwo], a type that implements `FromStr`:
@@ -269,11 +266,9 @@ impl Utf8Error {
269266///
270267/// If you are sure that the byte slice is valid UTF-8, and you don't want to
271268/// incur the overhead of the validity check, there is an unsafe version of
272- /// this function, [`from_utf8_unchecked`][fromutf8u] , which has the same
269+ /// this function, [`from_utf8_unchecked`], which has the same
273270/// behavior but skips the check.
274271///
275- /// [fromutf8u]: fn.from_utf8_unchecked.html
276- ///
277272/// If you need a `String` instead of a `&str`, consider
278273/// [`String::from_utf8`][string].
279274///
@@ -318,11 +313,9 @@ impl Utf8Error {
318313/// assert!(str::from_utf8(&sparkle_heart).is_err());
319314/// ```
320315///
321- /// See the docs for [`Utf8Error`][error] for more details on the kinds of
316+ /// See the docs for [`Utf8Error`] for more details on the kinds of
322317/// errors that can be returned.
323318///
324- /// [error]: struct.Utf8Error.html
325- ///
326319/// A "stack allocated string":
327320///
328321/// ```
@@ -371,10 +364,8 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
371364///
372365/// assert!(str::from_utf8_mut(&mut invalid).is_err());
373366/// ```
374- /// See the docs for [`Utf8Error`][error] for more details on the kinds of
367+ /// See the docs for [`Utf8Error`] for more details on the kinds of
375368/// errors that can be returned.
376- ///
377- /// [error]: struct.Utf8Error.html
378369#[ stable( feature = "str_mut_extras" , since = "1.20.0" ) ]
379370pub fn from_utf8_mut ( v : & mut [ u8 ] ) -> Result < & mut str , Utf8Error > {
380371 run_utf8_validation ( v) ?;
@@ -385,9 +376,7 @@ pub fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> {
385376/// Converts a slice of bytes to a string slice without checking
386377/// that the string contains valid UTF-8.
387378///
388- /// See the safe version, [`from_utf8`][fromutf8], for more information.
389- ///
390- /// [fromutf8]: fn.from_utf8.html
379+ /// See the safe version, [`from_utf8`], for more information.
391380///
392381/// # Safety
393382///
0 commit comments