about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/str/traits.rs4
1 files 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<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
     ///