Skip to content

Commit

Permalink
schema/mixin: fix comments in godoc (ent#2921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aagosh10 authored Sep 10, 2022
1 parent 9e56543 commit d9c71d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/mixin/mixin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d9c71d7

Please sign in to comment.