Skip to content

Commit b4fdc58

Browse files
Add missing documentation for bool::from_str
1 parent 8fd6d03 commit b4fdc58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/str/traits.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ impl FromStr for bool {
573573

574574
/// Parse a `bool` from a string.
575575
///
576-
/// Yields a `Result<bool, ParseBoolError>`, because `s` may or may not
577-
/// actually be parseable.
576+
/// The only accepted values are `"true"` and `"false"`. Any other input
577+
/// will return an error.
578578
///
579579
/// # Examples
580580
///

0 commit comments

Comments
 (0)