Skip to content

Commit efaa43e

Browse files
committed
Merge pull request astaxie#190 from liusongsen/patch-1
Update 13.5.md
2 parents 9885ed1 + 79c30d7 commit efaa43e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ebook/13.5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ DeleteController
167167

168168
func GetBlog(id int) (blog Blog) {
169169
db := GetLink()
170-
db.Where("id=?", id).Find(&blogs)
170+
db.Where("id=?", id).Find(&blog)
171171
return
172172
}
173173

@@ -256,4 +256,4 @@ edit.tpl
256256
## links
257257
* [目录](<preface.md>)
258258
* 上一章: [数据库操作](<13.4.md>)
259-
* 下一节: [小结](<13.6.md>)
259+
* 下一节: [小结](<13.6.md>)

0 commit comments

Comments
 (0)