about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKevin Cox <kevincox@google.com>2019-11-02 13:12:07 +0000
committerGitHub <noreply@github.com>2019-11-02 13:12:07 +0000
commite7fd580e7cd68f68cdc585a2f785d49c8fe7fefa (patch)
treef13170048b7bd589e2897c1106ad5ee9a7cb9261 /src
parente1974a4f1f05fc5c1c10d87cb20937ef87a68d9d (diff)
downloadrust-e7fd580e7cd68f68cdc585a2f785d49c8fe7fefa.tar.gz
rust-e7fd580e7cd68f68cdc585a2f785d49c8fe7fefa.zip
Rename SuperiorThanZero -> GreaterThanZero
Diffstat (limited to 'src')
-rw-r--r--src/libcore/convert.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs
index 0cef6707e47..16045f64d46 100644
--- a/src/libcore/convert.rs
+++ b/src/libcore/convert.rs
@@ -438,16 +438,16 @@ pub trait TryInto<T>: Sized {
 /// ```
 /// use std::convert::TryFrom;
 ///
-/// struct SuperiorThanZero(i32);
+/// struct GreaterThanZero(i32);
 ///
-/// impl TryFrom<i32> for SuperiorThanZero {
+/// impl TryFrom<i32> for GreaterThanZero {
 ///     type Error = &'static str;
 ///
 ///     fn try_from(value: i32) -> Result<Self, Self::Error> {
 ///         if value <= 0 {
-///             Err("SuperiorThanZero only accepts value superior than zero!")
+///             Err("GreaterThanZero only accepts value superior than zero!")
 ///         } else {
-///             Ok(SuperiorThanZero(value))
+///             Ok(GreaterThanZero(value))
 ///         }
 ///     }
 /// }