Skip to content

Commit

Permalink
Fix copy paste mistake in function comment (go-gorm#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmers authored Aug 2, 2023
1 parent 3e1ce90 commit 3981247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/generate/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (m *InterfaceMethod) DocComment() string {
return strings.Replace(strings.Replace(strings.TrimSpace(m.Doc), "\n", "\n// ", -1), "// ", "// ", -1)
}

// checkParams check all parameters
// checkMethod check interface methods
func (m *InterfaceMethod) checkMethod(methods []*InterfaceMethod, s *QueryStructMeta) (err error) {
if model.GormKeywords.FullMatch(m.MethodName) {
return fmt.Errorf("can not use keyword as method name:%s", m.MethodName)
Expand Down

0 comments on commit 3981247

Please sign in to comment.