Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61729ed

Browse files
committed
Fix typos and improve wording
1 parent 4a6bc4a commit 61729ed

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ id: 1234; page: 1; name: manu; message: this_is_great
220220

221221
### Another example: upload file
222222

223-
Reference issue [#548](https://github.com/gin-gonic/gin/issues/548)
223+
References issue [#548](https://github.com/gin-gonic/gin/issues/548).
224224

225225
```go
226226
func main() {
@@ -300,7 +300,7 @@ func main() {
300300
301301
// Authorization group
302302
// authorized := r.Group("/", AuthRequired())
303-
// exactly the same than:
303+
// exactly the same as:
304304
authorized := r.Group("/")
305305
// per group middleware! in this case we use the custom created
306306
// AuthRequired() middleware just in the "authorized" group.
@@ -645,7 +645,7 @@ func main() {
645645
// simulate a long task with time.Sleep(). 5 seconds
646646
time.Sleep(5 * time.Second)
647647
648-
// note than you are using the copied context "c_cp", IMPORTANT
648+
// note that you are using the copied context "cCp", IMPORTANT
649649
log.Println("Done! in path " + cCp.Request.URL.Path)
650650
}()
651651
})
@@ -693,13 +693,9 @@ func main() {
693693
#### Graceful restart or stop
694694
695695
Do you want to graceful restart or stop your web server?
696-
There be some ways.
696+
There are some ways this can be done.
697697
698-
We can using fvbock/endless to replace the default ListenAndServe
699-
700-
Refer the issue for more details:
701-
702-
https://github.com/gin-gonic/gin/issues/296
698+
We can use [fvbock/endless](https://github.com/fvbock/endless) to replace the default `ListenAndServe`. Refer issue [#296](https://github.com/gin-gonic/gin/issues/296) for more details.
703699
704700
```go
705701
router := gin.Default()

0 commit comments

Comments
 (0)