From 954e4c7e8d889b3b77e68886b2c78d5bb45b74fb Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Fri, 27 Dec 2024 11:42:55 +0000 Subject: [PATCH] docs: bad documentation in `ExponentialBackoffMaker` (#809) --- tower/src/retry/backoff.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tower/src/retry/backoff.rs b/tower/src/retry/backoff.rs index 685063ec3..38a5f69a1 100644 --- a/tower/src/retry/backoff.rs +++ b/tower/src/retry/backoff.rs @@ -79,10 +79,10 @@ where /// /// Returns a config validation error if: /// - `min` > `max` - /// - `max` > 0 - /// - `jitter` >= `0.0` - /// - `jitter` < `100.0` - /// - `jitter` is finite + /// - `max` == 0 + /// - `jitter` < `0.0` + /// - `jitter` > `100.0` + /// - `jitter` is not finite pub fn new( min: time::Duration, max: time::Duration,