Skip to content

Commit

Permalink
fix: a typo in docs (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
gamtiq committed Mar 13, 2020
1 parent 0de12b2 commit 5d729bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ request

When given the `.retry()` method, SuperAgent will automatically retry requests, if they fail in a way that is transient or could be due to a flaky Internet connection.

This method has two optional arguments: number of retries (default 1) and a callback. It calls `callback(err, res)` before each retry. The callback may return `true`/`false` to control whether the request sould be retried (but the maximum number of retries is always applied).
This method has two optional arguments: number of retries (default 1) and a callback. It calls `callback(err, res)` before each retry. The callback may return `true`/`false` to control whether the request should be retried (but the maximum number of retries is always applied).

request
.get('https://example.com/search')
Expand Down

0 comments on commit 5d729bb

Please sign in to comment.