]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/str/mod.rs
Rollup merge of #40824 - donniebishop:fromstr_docexample, r=steveklabnik
[rust.git] / src / libcore / str / mod.rs
index f3c3994ef3150f41999cb3ed465b9d47b625f9f3..0d66d0e93aa85a5344706486479c1658d07fec3c 100644 (file)
@@ -134,7 +134,9 @@ fn from_str(s: &str) -> Result<bool, ParseBoolError> {
     }
 }
 
-/// An error returned when parsing a `bool` from a string fails.
+/// An error returned when parsing a `bool` using [`from_str`] fails
+///
+/// [`from_str`]: ../../std/primitive.bool.html#method.from_str
 #[derive(Debug, Clone, PartialEq, Eq)]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct ParseBoolError { _priv: () }