Skip to content

Commit

Permalink
Rollup merge of rust-lang#45970 - GuillaumeGomez:from-str-docs, r=Qui…
Browse files Browse the repository at this point in the history
…etMisdreavus

Add missing links in FromStr docs

r? @QuietMisdreavus
  • Loading branch information
GuillaumeGomez authored Nov 14, 2017
2 parents 45331c0 + 7e8fe9a commit 0e19c4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 0e19c4f

Please sign in to comment.