From fe545746abeb3002c447101cb62068ffe2d60838 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Thu, 26 Dec 2024 14:38:05 -0500 Subject: [PATCH] docs: bad documentation in `ExponentialBackoffMaker` --- 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,