Skip to content

Commit b2eb9d5

Browse files
authored
docs(hertz): fix syntax error in example code (#1409)
1 parent 9bbb3f9 commit b2eb9d5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • content
    • en/docs/hertz/tutorials/basic-feature
    • zh/docs/hertz/tutorials/basic-feature

content/en/docs/hertz/tutorials/basic-feature/engine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Two methods are provided:
314314
}()
315315

316316
go func() {
317-
<-c..Finished()
317+
<-c.Finished()
318318
fmt.Println("request process end")
319319
}()
320320
})
@@ -336,7 +336,7 @@ Two methods are provided:
336336
}()
337337

338338
go func() {
339-
<-c..Finished()
339+
<-c.Finished()
340340
fmt.Println("request process end")
341341
}()
342342
})

content/zh/docs/hertz/tutorials/basic-feature/engine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Hertz Server 支持流式写入响应。
313313
}()
314314

315315
go func() {
316-
<-c..Finished()
316+
<-c.Finished()
317317
fmt.Println("request process end")
318318
}()
319319
})
@@ -335,7 +335,7 @@ Hertz Server 支持流式写入响应。
335335
}()
336336

337337
go func() {
338-
<-c..Finished()
338+
<-c.Finished()
339339
fmt.Println("request process end")
340340
}()
341341
})

0 commit comments

Comments
 (0)