diff --git a/src/widget/spin_button/mod.rs b/src/widget/spin_button/mod.rs index b4c18d01..e1e767a8 100644 --- a/src/widget/spin_button/mod.rs +++ b/src/widget/spin_button/mod.rs @@ -125,7 +125,7 @@ fn increment(step: T, value: T, min: T, max: T) -> T where T: Add + Sub + PartialEq + PartialOrd + Display + Copy, { - //! Make it roll over back to min if the increase is too high + /// Make it roll over back to min if the increase is too high if value + step > max { min } else { @@ -137,7 +137,7 @@ fn decrement(step: T, value: T, min: T, max: T) -> T where T: Add + Sub + PartialEq + PartialOrd + Display + Copy, { - //! Make it roll over back to max if the decrese is too low + /// Make it roll over back to max if the decrese is too low if value - step < min { max } else {