From 1592352a632a93ccc56f3b7b29709003dfccae31 Mon Sep 17 00:00:00 2001 From: survivorbat Date: Mon, 25 Nov 2024 16:12:01 +0100 Subject: [PATCH] Fix comment --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 33612e2..5cfbdbb 100644 --- a/errors.go +++ b/errors.go @@ -43,7 +43,7 @@ type ErrorRegistry struct { // handlers maps error types with their handlers handlers map[error]*errorHandler - // defaultHandler + // defaultHandler is called if no matching error was registered defaultHandler func(ctx context.Context, err error) (int, any) }