Skip to content

Commit

Permalink
changed the hook func argument to e for more consistent autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Nov 14, 2022
1 parent a998618 commit 77d2957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
var StopPropagation = errors.New("Event hook propagation stopped")

// Handler defines a hook handler function.
type Handler[T any] func(data T) error
type Handler[T any] func(e T) error

// Hook defines a concurrent safe structure for handling event hooks
// (aka. callbacks propagation).
Expand Down

0 comments on commit 77d2957

Please sign in to comment.