Skip to content

Commit

Permalink
Rename SuperiorThanZero -> GreaterThanZero
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincox authored Nov 2, 2019
1 parent e1974a4 commit e7fd580
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
/// }
/// }
/// }
Expand Down

0 comments on commit e7fd580

Please sign in to comment.