We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bool::from_str
1 parent 8fd6d03 commit b4fdc58Copy full SHA for b4fdc58
library/core/src/str/traits.rs
@@ -573,8 +573,8 @@ impl FromStr for bool {
573
574
/// Parse a `bool` from a string.
575
///
576
- /// Yields a `Result<bool, ParseBoolError>`, because `s` may or may not
577
- /// actually be parseable.
+ /// The only accepted values are `"true"` and `"false"`. Any other input
+ /// will return an error.
578
579
/// # Examples
580
0 commit comments