mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
doc: fix a doc error (#339)
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user