doc: fix a doc error (#339)

This commit is contained in:
zjl233
2020-02-11 20:01:55 +08:00
committed by GitHub
parent 9733051cc3
commit 7f8c2249d3

View File

@@ -242,7 +242,7 @@ func (User) Fields() []ent.Field {
return []ent.Field{
field.String("name"),
field.Time("created_at").
Default(time.Now),
Default(time.Now).
Immutable(),
}
}