From 72e97c555d4af4edf113a68d65e88971d041b17e Mon Sep 17 00:00:00 2001 From: Santiago Diaz Date: Fri, 11 Oct 2024 22:56:05 -0300 Subject: [PATCH] fix: typo in hooks documentation --- docs/api/hooks.md | 4 ++-- hooks.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/hooks.md b/docs/api/hooks.md index 2ef3a4619a..828d68a359 100644 --- a/docs/api/hooks.md +++ b/docs/api/hooks.md @@ -34,7 +34,7 @@ type OnMountHandler = func(*App) error ## OnRoute -OnRoute is a hook to execute user functions on each route registeration. Also you can get route properties by **route** parameter. +OnRoute is a hook to execute user functions on each route registration. Also you can get route properties by **route** parameter. ```go title="Signature" func (h *Hooks) OnRoute(handler ...OnRouteHandler) @@ -104,7 +104,7 @@ func main() { ## OnGroup -OnGroup is a hook to execute user functions on each group registeration. Also you can get group properties by **group** parameter. +OnGroup is a hook to execute user functions on each group registration. Also you can get group properties by **group** parameter. ```go title="Signature" func (h *Hooks) OnGroup(handler ...OnGroupHandler) diff --git a/hooks.go b/hooks.go index 37310a4a16..3da5c671ff 100644 --- a/hooks.go +++ b/hooks.go @@ -53,7 +53,7 @@ func newHooks(app *App) *Hooks { } } -// OnRoute is a hook to execute user functions on each route registeration. +// OnRoute is a hook to execute user functions on each route registration. // Also you can get route properties by route parameter. func (h *Hooks) OnRoute(handler ...OnRouteHandler) { h.app.mutex.Lock() @@ -71,7 +71,7 @@ func (h *Hooks) OnName(handler ...OnNameHandler) { h.app.mutex.Unlock() } -// OnGroup is a hook to execute user functions on each group registeration. +// OnGroup is a hook to execute user functions on each group registration. // Also you can get group properties by group parameter. func (h *Hooks) OnGroup(handler ...OnGroupHandler) { h.app.mutex.Lock()