Merge pull request #190 from liusongsen/patch-1

Update 13.5.md
This commit is contained in:
astaxie
2013-05-06 00:05:27 -07:00

View File

@@ -167,7 +167,7 @@ DeleteController
func GetBlog(id int) (blog Blog) {
db := GetLink()
db.Where("id=?", id).Find(&blogs)
db.Where("id=?", id).Find(&blog)
return
}
@@ -256,4 +256,4 @@ edit.tpl
## links
* [目录](<preface.md>)
* 上一章: [数据库操作](<13.4.md>)
* 下一节: [小结](<13.6.md>)
* 下一节: [小结](<13.6.md>)