Skip to content

Commit 018b8c3

Browse files
ebi-yadeskmcgrail
authored andcommitted
Amend typological errors in retryer package comments
1 parent 5b135f8 commit 018b8c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aws/retry/adaptive.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (a *AdaptiveMode) IsErrorRetryable(err error) bool {
9393
}
9494

9595
// MaxAttempts returns the maximum number of attempts that can be made for
96-
// a attempt before failing. A value of 0 implies that the attempt should
96+
// an attempt before failing. A value of 0 implies that the attempt should
9797
// be retried until it succeeds if the errors are retryable.
9898
func (a *AdaptiveMode) MaxAttempts() int {
9999
return a.retryer.MaxAttempts()
@@ -127,7 +127,7 @@ func (a *AdaptiveMode) GetInitialToken() (releaseToken func(error) error) {
127127

128128
// GetAttemptToken returns the attempt token that can be used to rate limit
129129
// attempt calls. Will be used by the SDK's retry package's Attempt
130-
// middleware to get a attempt token prior to calling the temp and releasing
130+
// middleware to get an attempt token prior to calling the temp and releasing
131131
// the attempt token after the attempt has been made.
132132
func (a *AdaptiveMode) GetAttemptToken(ctx context.Context) (func(error) error, error) {
133133
for {

aws/retryer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Retryer interface {
4949
IsErrorRetryable(error) bool
5050

5151
// MaxAttempts returns the maximum number of attempts that can be made for
52-
// a attempt before failing. A value of 0 implies that the attempt should
52+
// an attempt before failing. A value of 0 implies that the attempt should
5353
// be retried until it succeeds if the errors are retryable.
5454
MaxAttempts() int
5555

@@ -66,7 +66,7 @@ type Retryer interface {
6666
GetInitialToken() (releaseToken func(error) error)
6767
}
6868

69-
// RetryerV2 is an interface to determine if a given error from a attempt
69+
// RetryerV2 is an interface to determine if a given error from an attempt
7070
// should be retried, and if so what backoff delay to apply. The default
7171
// implementation used by most services is the retry package's Standard type.
7272
// Which contains basic retry logic using exponential backoff.

0 commit comments

Comments
 (0)