Skip to content

Commit 70c673a

Browse files
author
nivance
committed
代码小纠错
1 parent e3a3815 commit 70c673a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

de/13.5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ type DeleteController struct {
151151
152152
func (this *DeleteController) Get() {
153153
id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
154-
blog := models.GetBlog(id int)
154+
blog := models.GetBlog(id)
155155
this.Data["Post"] = blog
156156
models.DelBlog(blog)
157157
this.Ctx.Redirect(302, "/")

zh/13.5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ DeleteController
126126

127127
func (this *DeleteController) Get() {
128128
id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
129-
blog := models.GetBlog(id int)
129+
blog := models.GetBlog(id)
130130
this.Data["Post"] = blog
131131
models.DelBlog(blog)
132132
this.Ctx.Redirect(302, "/")

0 commit comments

Comments
 (0)