Skip to content

Commit e740934

Browse files
Fixed readme.
1 parent 5dd40a1 commit e740934

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type User struct {
2525
var HookUserInsert = hooks.NewHook[User]("user.insert")
2626
```
2727

28-
2Listen to a hook:
28+
2) Listen to a hook:
2929

3030
```go
3131
package greeter
@@ -223,7 +223,7 @@ func (u *User) Validate() []error {
223223
}
224224

225225
// Let other modules validate
226-
HookUserValidate.Dispatch(u)
226+
HookUserValidate.Dispatch(uv)
227227

228228
return uv.Errors
229229
}

0 commit comments

Comments
 (0)