From dae8ecea60458ba9bd2343cd56cfd043448a6df7 Mon Sep 17 00:00:00 2001 From: congyi <15605187270@163.com> Date: Wed, 21 Feb 2024 18:38:26 +0800 Subject: [PATCH] fix factor assert --- src/exponential.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exponential.rs b/src/exponential.rs index 1d21bd7..d9d25fd 100644 --- a/src/exponential.rs +++ b/src/exponential.rs @@ -71,7 +71,7 @@ impl ExponentialBuilder { /// /// This function will panic if input factor smaller than `1.0`. pub fn with_factor(mut self, factor: f32) -> Self { - debug_assert!(factor > 1.0, "invalid factor that lower than 1"); + debug_assert!(factor >= 1.0, "invalid factor that lower than 1"); self.factor = factor; self