diff --git a/pages/docs/create.md b/pages/docs/create.md index 6ee44ce0a68..2ab6abeb6d0 100644 --- a/pages/docs/create.md +++ b/pages/docs/create.md @@ -18,8 +18,8 @@ result.RowsAffected // returns inserted records count We can also create multiple records with `Create()`: ```go users := []*User{ - User{Name: "Jinzhu", Age: 18, Birthday: time.Now()}, - User{Name: "Jackson", Age: 19, Birthday: time.Now()}, + {Name: "Jinzhu", Age: 18, Birthday: time.Now()}, + {Name: "Jackson", Age: 19, Birthday: time.Now()}, } result := db.Create(users) // pass a slice to insert multiple row