Skip to content

Commit e7fd580

Browse files
authored
Rename SuperiorThanZero -> GreaterThanZero
1 parent e1974a4 commit e7fd580

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/convert.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -438,16 +438,16 @@ pub trait TryInto<T>: Sized {
438438
/// ```
439439
/// use std::convert::TryFrom;
440440
///
441-
/// struct SuperiorThanZero(i32);
441+
/// struct GreaterThanZero(i32);
442442
///
443-
/// impl TryFrom<i32> for SuperiorThanZero {
443+
/// impl TryFrom<i32> for GreaterThanZero {
444444
/// type Error = &'static str;
445445
///
446446
/// fn try_from(value: i32) -> Result<Self, Self::Error> {
447447
/// if value <= 0 {
448-
/// Err("SuperiorThanZero only accepts value superior than zero!")
448+
/// Err("GreaterThanZero only accepts value superior than zero!")
449449
/// } else {
450-
/// Ok(SuperiorThanZero(value))
450+
/// Ok(GreaterThanZero(value))
451451
/// }
452452
/// }
453453
/// }

0 commit comments

Comments
 (0)