Docs clarification

This commit is contained in:
neilotoole 2024-01-29 00:00:15 -07:00
parent 9a0b9b7a9c
commit e9cd83dee3

View File

@ -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 {