From 9564d8ff88294257499cd16f16b8814ef78021b6 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Thu, 30 May 2024 18:07:50 -0700 Subject: [PATCH] Fix Cancelled interface typo The function for the interface should be `Cancelled` not `ErrCancelled`. Signed-off-by: Derek McGowan --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 69525e5..c757810 100644 --- a/errors.go +++ b/errors.go @@ -55,7 +55,7 @@ var ( // cancelled maps to Moby's "ErrCancelled" type cancelled interface { - ErrCancelled() + Cancelled() } // IsCanceled returns true if the error is due to `context.Canceled`.