mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
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:
committed by
GitHub
parent
21ea376817
commit
110d0d138a
@@ -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 }} {
|
||||
|
||||
Reference in New Issue
Block a user