Skip to content

Commit ca7e9a8

Browse files
committed
Handler type must be type alias
1 parent b56f802 commit ca7e9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

err2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type (
1111
// Handler is a function type used to process error values in Handle and
1212
// Catch. We currently have a few build-ins of the Handler: err2.Noop,
1313
// err2.Reset, etc.
14-
Handler func(error) error
14+
Handler = func(error) error
1515
)
1616

1717
var (

0 commit comments

Comments
 (0)