schema/mixin: fix comments in godoc (#2921)

This commit is contained in:
Aagosh
2022-09-10 16:11:26 +05:30
committed by GitHub
parent 9e56543bfc
commit d9c71d7f67

View File

@@ -39,7 +39,7 @@ func (Schema) Policy() ent.Policy { return nil }
// Annotations of the mixin.
func (Schema) Annotations() []schema.Annotation { return nil }
// time mixin must implement `Mixin` interface.
// schema mixin must implement `Mixin` interface.
var _ ent.Mixin = (*Schema)(nil)
// CreateTime adds created at time field.
@@ -69,7 +69,7 @@ func (UpdateTime) Fields() []ent.Field {
}
}
// create time mixin must implement `Mixin` interface.
// update time mixin must implement `Mixin` interface.
var _ ent.Mixin = (*UpdateTime)(nil)
// Time composes create/update time mixin.