ent/schema/field: fix incorrect Go code in GoType() doc comments (#2441)

All examples used repeated argument names, which do not compile
This commit is contained in:
Frédéric G. MARAND
2022-04-01 18:35:23 +02:00
committed by GitHub
parent 21ea376817
commit 110d0d138a
2 changed files with 28 additions and 28 deletions

View File

@@ -197,8 +197,8 @@ func (b *{{ $builder }}) SchemaType(types map[string]string) *{{ $builder }} {
// `Add(T) T` method in order to support the `Add<F>` operation
// in mutations. For example:
//
// func(t1 T) Add(t1 T) T {
// return add(t1, t1)
// func(t1 T) Add(t2 T) T {
// return add(t1, t2)
// }
//
func (b *{{ $builder }}) GoType(typ interface{}) *{{ $builder }} {
@@ -366,8 +366,8 @@ func (b *{{ $builder }}) SchemaType(types map[string]string) *{{ $builder }} {
// `Add(T) T` method in order to support the `Add<F>` operation
// in mutations. For example:
//
// func(t1 T) Add(t1 T) T {
// return add(t1, t1)
// func(t1 T) Add(t2 T) T {
// return add(t1, t2)
// }
//
func (b *{{ $builder }}) GoType(typ interface{}) *{{ $builder }} {