Skip to content

Commit 0e19c4f

Browse files
Rollup merge of #45970 - GuillaumeGomez:from-str-docs, r=QuietMisdreavus
Add missing links in FromStr docs r? @QuietMisdreavus
2 parents 45331c0 + 7e8fe9a commit 0e19c4f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libcore/str/mod.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ pub trait FromStr: Sized {
7676

7777
/// Parses a string `s` to return a value of this type.
7878
///
79-
/// If parsing succeeds, return the value inside `Ok`, otherwise
79+
/// If parsing succeeds, return the value inside [`Ok`], otherwise
8080
/// when the string is ill-formatted return an error specific to the
81-
/// inside `Err`. The error type is specific to implementation of the trait.
81+
/// inside [`Err`]. The error type is specific to implementation of the trait.
82+
///
83+
/// [`Ok`]: ../../std/result/enum.Result.html#variant.Ok
84+
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
8285
///
8386
/// # Examples
8487
///

0 commit comments

Comments
 (0)