Skip to content

Commit 7dd702d

Browse files
Fix incorrect documentation comment (has many -> has one) (go-gorm#6382)
1 parent 7157b7e commit 7dd702d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/tests/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
1212
// He speaks many languages (many to many) and has many friends (many to many - single-table)
1313
// His pet also has one Toy (has one - polymorphic)
14-
// NamedPet is a reference to a Named `Pets` (has many)
14+
// NamedPet is a reference to a named `Pet` (has one)
1515
type User struct {
1616
gorm.Model
1717
Name string

0 commit comments

Comments
 (0)