go-gorm/gorm.io

Example in pt_BR for 'Has One' has mismatching comments

Anupam-Ashish-Minz opened this issue · 0 comments

https://github.com/go-gorm/gorm.io/blob/master/pages/pt_BR/docs/has_one.md

the example given

// User has one CreditCard, CreditCardID is the foreign key
type User struct {
  gorm.Model
  CreditCard CreditCard
}

type CreditCard struct {
  gorm.Model
  Number string
  UserID uint
}

CreditCardID is not present in the give example