Skip to content

Commit

Permalink
ent/schema/field: fix incorrect Go code in GoType() doc comments (#2441)
Browse files Browse the repository at this point in the history
All examples used repeated argument names, which do not compile
  • Loading branch information
fgm committed Apr 1, 2022
1 parent 21ea376 commit 110d0d1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions schema/field/internal/numeric.tmpl
Expand Up @@ -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 }} {
Expand Down Expand Up @@ -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 }} {
Expand Down
48 changes: 24 additions & 24 deletions schema/field/numeric.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 110d0d1

Please sign in to comment.