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