about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-29 18:13:21 +0530
committerGitHub <noreply@github.com>2022-09-29 18:13:21 +0530
commit34f02c3e8dc441a6626d8b12f497612f98adc18a (patch)
tree16c76fb6cf318be7ed677fe41c3fb9e9f57bbf57
parent5f18c2bd10badb26fd4343e21730a07af55d42c6 (diff)
parent06624e8c5a4686dd10036cf5bc8a19bca49ac9ff (diff)
downloadrust-34f02c3e8dc441a6626d8b12f497612f98adc18a.tar.gz
rust-34f02c3e8dc441a6626d8b12f497612f98adc18a.zip
Rollup merge of #102452 - granolocks:grammar-tweak, r=thomcc
fix minor ungrammatical sentence

This fixes an innocuous ungrammatical sentence in example code in the  `TryFrom` documentation.
-rw-r--r--library/core/src/convert/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs
index c42adda8da5..6f23b9d908d 100644
--- a/library/core/src/convert/mod.rs
+++ b/library/core/src/convert/mod.rs
@@ -440,7 +440,7 @@ pub trait TryInto<T>: Sized {
 ///
 ///     fn try_from(value: i32) -> Result<Self, Self::Error> {
 ///         if value <= 0 {
-///             Err("GreaterThanZero only accepts value superior than zero!")
+///             Err("GreaterThanZero only accepts values greater than zero!")
 ///         } else {
 ///             Ok(GreaterThanZero(value))
 ///         }