entc/gen: change typo from Use to Intercept (#3290)

This commit is contained in:
Ariel Mashraki
2023-02-01 11:43:17 +02:00
committed by GitHub
parent e49d88379a
commit cb2f75932f
36 changed files with 140 additions and 140 deletions

View File

@@ -158,7 +158,7 @@ func (c *UserClient) Use(hooks ...Hook) {
c.hooks.User = append(c.hooks.User, hooks...)
}
// Use adds a list of query interceptors to the interceptors stack.
// Intercept adds a list of query interceptors to the interceptors stack.
// A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
func (c *UserClient) Intercept(interceptors ...Interceptor) {
c.inters.User = append(c.inters.User, interceptors...)