about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore')
-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))
 ///         }
 ///     }
 /// }