We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7e28a commit e1974a4Copy full SHA for e1974a4
src/libcore/convert.rs
@@ -444,7 +444,7 @@ pub trait TryInto<T>: Sized {
444
/// type Error = &'static str;
445
///
446
/// fn try_from(value: i32) -> Result<Self, Self::Error> {
447
-/// if value < 0 {
+/// if value <= 0 {
448
/// Err("SuperiorThanZero only accepts value superior than zero!")
449
/// } else {
450
/// Ok(SuperiorThanZero(value))
0 commit comments