Skip to content

Commit

Permalink
Fix incorrect Go code in GoType() doc comments
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 authored and Frederic G. MARAND committed Apr 1, 2022
1 parent 21ea376 commit b6b24e5
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 b6b24e5

Please sign in to comment.