Skip to content

Commit

Permalink
fix: doc for with_max_times (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar authored Nov 22, 2024
1 parent 6c7c6f7 commit 073c744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backon/src/backoff/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl ConstantBuilder {
self
}

/// Set the maximum duration for the backoff.
/// Set the maximum number of attempts to be made.
pub fn with_max_times(mut self, max_times: usize) -> Self {
self.max_times = Some(max_times);
self
Expand Down

0 comments on commit 073c744

Please sign in to comment.