We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0aea1b + 928af08 commit 0ce947fCopy full SHA for 0ce947f
lifecycle.go
@@ -53,7 +53,7 @@ type Hook struct {
53
// StartHook returns a new Hook with start as its [Hook.OnStart] function,
54
// wrapping its signature as needed. For example, given the following function:
55
//
56
-// func myhook() {
+// func myfunc() {
57
// fmt.Println("hook called")
58
// }
59
@@ -86,7 +86,7 @@ func StartHook[T HookFunc](start T) Hook {
86
// StopHook returns a new Hook with stop as its [Hook.OnStop] function,
87
88
89
90
91
92
0 commit comments