From b4fdc5861d46dc9204a8a4a51fa287360090ec3c Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 21 Sep 2022 14:17:11 +0200 Subject: [PATCH] Add missing documentation for `bool::from_str` --- library/core/src/str/traits.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ///