Skip to content

Commit

Permalink
doc/website/blog: tidb indentation fix (ent#2423)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedwigz authored and gitlawr committed Apr 13, 2022
1 parent cc0060b commit d3056e8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ For a quick "Hello World" application with Ent+TiDB, follow these steps:
In this example repository we defined a simple schema `User`:
```go title="ent/schema/user.go"
func (User) Fields() []ent.Field {
return []ent.Field{
field.Time("created_at").
Default(time.Now),
field.String("name"),
field.Int("age"),
}
return []ent.Field{
field.Time("created_at").
Default(time.Now),
field.String("name"),
field.Int("age"),
}
}
```
Then, we connected Ent with TiDB:
Expand Down

0 comments on commit d3056e8

Please sign in to comment.