Fix incorrect documentation comment (has many -> has one) (#6382)

This commit is contained in:
Johannes Riecken 2023-06-07 09:02:30 +02:00 committed by GitHub
parent 7157b7e375
commit 7dd702d379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
// He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
// He speaks many languages (many to many) and has many friends (many to many - single-table)
// His pet also has one Toy (has one - polymorphic)
// NamedPet is a reference to a Named `Pets` (has many)
// NamedPet is a reference to a named `Pet` (has one)
type User struct {
gorm.Model
Name string