From e7fd580e7cd68f68cdc585a2f785d49c8fe7fefa Mon Sep 17 00:00:00 2001 From: Kevin Cox Date: Sat, 2 Nov 2019 13:12:07 +0000 Subject: Rename SuperiorThanZero -> GreaterThanZero --- src/libcore/convert.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libcore') 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: Sized { /// ``` /// use std::convert::TryFrom; /// -/// struct SuperiorThanZero(i32); +/// struct GreaterThanZero(i32); /// -/// impl TryFrom for SuperiorThanZero { +/// impl TryFrom for GreaterThanZero { /// type Error = &'static str; /// /// fn try_from(value: i32) -> Result { /// 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)) /// } /// } /// } -- cgit 1.4.1-3-g733a5