Merge pull request #220 from tschaub/patch-1

Code example fix in readme
This commit is contained in:
Jinzhu 2014-09-07 08:09:10 +08:00
commit 1ad419004f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ var user User
db.First(&user)
// creating a new User
DB.Save(&User{Name: "xxx"}) // table "users"
db.Save(&User{Name: "xxx"}) // table "users"
```
* Column name is the snake case of field's name