Skip to content

Commit 779d2f3

Browse files
authored
Link ParseBoolError to from_str method of bool
1 parent 49c67bd commit 779d2f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/str/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ impl FromStr for bool {
101101
}
102102
}
103103

104-
/// An error returned when parsing a `bool` from a string fails.
104+
/// An error returned when parsing a `bool` using [`from_str`] fails
105+
///
106+
/// [`from_str`]: ../../std/primitive.bool.html#method.from_str
105107
#[derive(Debug, Clone, PartialEq, Eq)]
106108
#[stable(feature = "rust1", since = "1.0.0")]
107109
pub struct ParseBoolError { _priv: () }

0 commit comments

Comments
 (0)