Rollup merge of #45970 - GuillaumeGomez:from-str-docs, r=QuietMisdreavus

Add missing links in FromStr docs

r? @QuietMisdreavus
This commit is contained in:
Guillaume Gomez 2017-11-14 16:52:13 +01:00 committed by GitHub
commit 0895347a49

View File

@ -76,9 +76,12 @@ pub trait FromStr: Sized {
/// Parses a string `s` to return a value of this type.
///
/// If parsing succeeds, return the value inside `Ok`, otherwise
/// If parsing succeeds, return the value inside [`Ok`], otherwise
/// when the string is ill-formatted return an error specific to the
/// inside `Err`. The error type is specific to implementation of the trait.
/// inside [`Err`]. The error type is specific to implementation of the trait.
///
/// [`Ok`]: ../../std/result/enum.Result.html#variant.Ok
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
///
/// # Examples
///