Skip to content

Commit 317100a

Browse files
committed
fix format
1 parent 6032db5 commit 317100a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

backoff.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ import "time"
1515
// BackOff is a backoff policy for retrying an operation.
1616
type BackOff interface {
1717
// NextBackOff returns the duration to wait before retrying the operation,
18-
// or backoff. Stop to indicate that no more retries should be made.
18+
// backoff.Stop to indicate that no more retries should be made.
1919
//
2020
// Example usage:
2121
//
22-
// duration := backoff.NextBackOff();
23-
// if (duration == backoff.Stop) {
24-
// // Do not retry operation.
25-
// } else {
26-
// // Sleep for duration and retry operation.
27-
// }
22+
// duration := backoff.NextBackOff()
23+
// if duration == backoff.Stop {
24+
// // Do not retry operation.
25+
// } else {
26+
// // Sleep for duration and retry operation.
27+
// }
2828
//
2929
NextBackOff() time.Duration
3030

0 commit comments

Comments
 (0)