entc/gen: add missing braces in mutation template (#1014)

This commit is contained in:
BrentChesny
2020-12-04 07:02:52 +01:00
committed by GitHub
parent 12b7549768
commit 263bc0b08f
27 changed files with 80 additions and 80 deletions

View File

@@ -72,7 +72,7 @@ var _ ent.Mutation = (*{{ $mutation }})(nil)
// {{ $mutationOption }} allows to manage the mutation configuration using functional options.
type {{ $mutationOption }} func(*{{ $mutation }})
// new{{ $mutation }} creates new mutation for $n.Name.
// new{{ $mutation }} creates new mutation for {{ $n.Name }}.
func new{{ $mutation }}(c config, op Op, opts ...{{ $mutationOption }}) *{{ $mutation }} {
m := &{{ $mutation }}{
config: c,