Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect Go code in GoType() doc comments #2441

Merged
merged 1 commit into from Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.