Link ParseBoolError to from_str method of bool

This commit is contained in:
Donnie Bishop 2017-03-25 06:25:08 -04:00 committed by GitHub
parent 49c67bd632
commit 779d2f3044

View File

@ -101,7 +101,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: () }