mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-18 05:31:38 +03:00
Docs clarification
This commit is contained in:
parent
9a0b9b7a9c
commit
e9cd83dee3
@ -422,7 +422,7 @@ func (dl *Downloader) do(req *http.Request) (*http.Response, error) {
|
||||
}
|
||||
|
||||
// mustRequest creates a new request from dl.url. The url has already been
|
||||
// parsed in download.New, so it's safe to ignore the error.
|
||||
// parsed in [downloader.New], so it's safe to use.
|
||||
func (dl *Downloader) mustRequest(ctx context.Context) *http.Request {
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, dl.url, nil)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user