diff --git a/library/core/src/str/traits.rs b/library/core/src/str/traits.rs index e9649fc91fa..18f2ce6edc7 100644 --- a/library/core/src/str/traits.rs +++ b/library/core/src/str/traits.rs @@ -573,8 +573,8 @@ impl FromStr for bool { /// Parse a `bool` from a string. /// - /// Yields a `Result`, 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 ///