From 416f037e777022678e4138e780381b8f5b58364f Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Mon, 5 Oct 2020 19:39:05 -0500 Subject: [PATCH] Fix docs for Timeout --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index b746c825..164b0848 100644 --- a/errors.go +++ b/errors.go @@ -20,7 +20,7 @@ func SafeToRetry(err error) bool { } // Timeout checks if err was was caused by a timeout. To be specific, it is true if err is or was caused by a -// context.Canceled, context.Canceled or an implementer of net.Error where Timeout() is true. +// context.Canceled, context.DeadlineExceeded or an implementer of net.Error where Timeout() is true. func Timeout(err error) bool { if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { return true