From 34bd5228604d79fb7c697702422d8ef622ceaeb1 Mon Sep 17 00:00:00 2001 From: roc Date: Sun, 7 Apr 2024 11:16:35 +0800 Subject: [PATCH] fix typo --- request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/request.go b/request.go index 9669adb..4bbb98a 100644 --- a/request.go +++ b/request.go @@ -661,8 +661,8 @@ func (r *Request) do() (resp *Response, err error) { resp, err = r.client.roundTrip(r) } - // Determine if the error is from a cancelled context. Store it here so it doesn't get lost - // when processing the AfterRespon middleware. + // Determine if the error is from a canceled context. + // Store it here so it doesn't get lost when processing the AfterResponse middleware. contextCanceled := errors.Is(err, context.Canceled) for _, f := range r.afterResponse {