From 7e8fe9a63fc35854927203e3f7a4a0c5e00414ef Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 13 Nov 2017 23:25:52 +0100 Subject: [PATCH] Add missing links in FromStr docs --- src/libcore/str/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 670c2afa66f85..be5108238fc04 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -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 ///