Skip to content

Commit 0ce947f

Browse files
authored
Merge branch 'master' into refac-rename
2 parents c0aea1b + 928af08 commit 0ce947f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lifecycle.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type Hook struct {
5353
// StartHook returns a new Hook with start as its [Hook.OnStart] function,
5454
// wrapping its signature as needed. For example, given the following function:
5555
//
56-
// func myhook() {
56+
// func myfunc() {
5757
// fmt.Println("hook called")
5858
// }
5959
//
@@ -86,7 +86,7 @@ func StartHook[T HookFunc](start T) Hook {
8686
// StopHook returns a new Hook with stop as its [Hook.OnStop] function,
8787
// wrapping its signature as needed. For example, given the following function:
8888
//
89-
// func myhook() {
89+
// func myfunc() {
9090
// fmt.Println("hook called")
9191
// }
9292
//

0 commit comments

Comments
 (0)