Skip to content

Commit

Permalink
fix: correct grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
seaworn authored and jinzhu committed Sep 22, 2022
1 parent a9b19f6 commit 0140d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gorm.go
Expand Up @@ -413,7 +413,7 @@ func (db *DB) SetupJoinTable(model interface{}, field string, joinTable interfac
relation, ok := modelSchema.Relationships.Relations[field]
isRelation := ok && relation.JoinTable != nil
if !isRelation {
return fmt.Errorf("failed to found relation: %s", field)
return fmt.Errorf("failed to find relation: %s", field)
}

for _, ref := range relation.References {
Expand Down

0 comments on commit 0140d97

Please sign in to comment.