Skip to content

Commit

Permalink
Rollup merge of #102094 - GuillaumeGomez:bool-from-str-missing-docs, …
Browse files Browse the repository at this point in the history
…r=scottmcm

Add missing documentation for `bool::from_str`

Fixes #101870.
  • Loading branch information
matthiaskrgr authored Sep 23, 2022
2 parents 4d44e09 + b4fdc58 commit 986fc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/str/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ impl FromStr for bool {

/// Parse a `bool` from a string.
///
/// Yields a `Result<bool, ParseBoolError>`, because `s` may or may not
/// actually be parseable.
/// The only accepted values are `"true"` and `"false"`. Any other input
/// will return an error.
///
/// # Examples
///
Expand Down

0 comments on commit 986fc4b

Please sign in to comment.