From a6eb4b735cfa77868d3d0a621a627d05de671c4f Mon Sep 17 00:00:00 2001 From: Bryan Hyland Date: Tue, 19 Nov 2024 07:34:25 -0800 Subject: [PATCH] Updated formatting to pass tests --- src/widget/spin_button/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {