@@ -130,7 +130,7 @@ public enum RetryStrategy<C> where C: Clock {
130
130
/// let (data, response) = try await retry(maxAttempts: 5) {
131
131
/// try await URLSession.shared.data(from: url)
132
132
/// } strategy: { _ in
133
- /// return .backoff(.constant(c: .seconds(2)))
133
+ /// return .backoff(.constant(.seconds(2)))
134
134
/// }
135
135
/// ```
136
136
/// Similarly to the first customization, if any error occurs, the operation will be tried 4 more times.
@@ -157,7 +157,7 @@ public enum RetryStrategy<C> where C: Clock {
157
157
/// return (data, response)
158
158
/// } strategy: { error in
159
159
/// if let error = error as? TooManyRequests {
160
- /// return .backoff(.constant(c: .seconds(error.retryAfter)))
160
+ /// return .backoff(.constant(.seconds(error.retryAfter)))
161
161
/// } else {
162
162
/// return .stop
163
163
/// }
@@ -233,7 +233,7 @@ public func retry<R, E, C>(
233
233
/// let (data, response) = try await retry(maxAttempts: 5) {
234
234
/// try await URLSession.shared.data(from: url)
235
235
/// } strategy: { _ in
236
- /// return .backoff(.constant(c: .seconds(2)))
236
+ /// return .backoff(.constant(.seconds(2)))
237
237
/// }
238
238
/// ```
239
239
/// Similarly to the first customization, if any error occurs, the operation will be tried 4 more times.
@@ -260,7 +260,7 @@ public func retry<R, E, C>(
260
260
/// return (data, response)
261
261
/// } strategy: { error in
262
262
/// if let error = error as? TooManyRequests {
263
- /// return .backoff(.constant(c: .seconds(error.retryAfter)))
263
+ /// return .backoff(.constant(.seconds(error.retryAfter)))
264
264
/// } else {
265
265
/// return .stop
266
266
/// }
0 commit comments