Skip to content

Commit 986fc4b

Browse files
authored
Rollup merge of #102094 - GuillaumeGomez:bool-from-str-missing-docs, r=scottmcm
Add missing documentation for `bool::from_str` Fixes #101870.
2 parents 4d44e09 + b4fdc58 commit 986fc4b

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)