all: small typo fixes (#2095)

This commit is contained in:
Alexander Melentyev
2021-11-01 18:47:06 +03:00
committed by GitHub
parent 681d03e896
commit 147b1f59ae
8 changed files with 10 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ func (b *assocBuilder) StructTag(s string) *assocBuilder {
return b
}
// Assoc creates an inverse-edge with the same type.
// From creates an inverse-edge with the same type.
func (b *assocBuilder) From(name string) *inverseBuilder {
return &inverseBuilder{desc: &Descriptor{Name: name, Type: b.desc.Type, Inverse: true, Ref: b.desc}}
}

View File

@@ -123,7 +123,7 @@ func (t TypeInfo) ValueScanner() bool {
return t.RType.implements(valueScannerType)
}
// ValueScanner indicates if this type implements the driver.Valuer interface.
// Valuer indicates if this type implements the driver.Valuer interface.
func (t TypeInfo) Valuer() bool {
return t.RType.implements(valuerType)
}