From 953cf9948ba605b298f5a81987dc3a516dd8c619 Mon Sep 17 00:00:00 2001 From: Sediman Date: Wed, 27 May 2026 06:07:51 +0200 Subject: [PATCH] fix(docs): correct grammar and missing punctuation in doc.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix 'detail information' → 'detailed information' (6 occurrences) - Fix 'detail example code' → 'detailed example code' (1 occurrence) - Add missing closing quote in BasicAuth example comment --- docs/doc.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/doc.md b/docs/doc.md index d1c33b87..c4f21157 100644 --- a/docs/doc.md +++ b/docs/doc.md @@ -108,7 +108,7 @@ Gin enables `MsgPack` rendering feature by default. But you can disable this fea go build -tags=nomsgpack . ``` -This is useful to reduce the binary size of executable files. See the [detail information](https://github.com/gin-gonic/gin/pull/1852). +This is useful to reduce the binary size of executable files. See the [detailed information](https://github.com/gin-gonic/gin/pull/1852). ## Routing @@ -275,7 +275,7 @@ ids: map[b:hello a:1234]; names: map[second:tianou first:thinkerou] #### Single file -References issue [#774](https://github.com/gin-gonic/gin/issues/774) and detail [example code](https://github.com/gin-gonic/examples/tree/master/upload-file/single). +References issue [#774](https://github.com/gin-gonic/gin/issues/774) and detailed [example code](https://github.com/gin-gonic/examples/tree/master/upload-file/single). `file.Filename` **SHOULD NOT** be trusted. See [`Content-Disposition` on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#Directives) and [#1693](https://github.com/gin-gonic/gin/issues/1693) @@ -556,7 +556,7 @@ func main() { })) // /admin/secrets endpoint - // hit "localhost:8080/admin/secrets + // hit "localhost:8080/admin/secrets" authorized.GET("/secrets", func(c *gin.Context) { // get user, it was set by the BasicAuth middleware user := c.MustGet(gin.AuthUserKey).(string) @@ -998,7 +998,7 @@ See the [struct-lvl-validation example](https://github.com/gin-gonic/examples/tr ### Only Bind Query String -`ShouldBindQuery` function only binds the query params and not the post data. See the [detail information](https://github.com/gin-gonic/gin/issues/742#issuecomment-315953017). +`ShouldBindQuery` function only binds the query params and not the post data. See the [detailed information](https://github.com/gin-gonic/gin/issues/742#issuecomment-315953017). ```go package main @@ -1035,7 +1035,7 @@ func startPage(c *gin.Context) { ### Bind Query String or Post Data -See the [detail information](https://github.com/gin-gonic/gin/issues/742#issuecomment-264681292). +See the [detailed information](https://github.com/gin-gonic/gin/issues/742#issuecomment-264681292). ```go package main @@ -1191,7 +1191,7 @@ curl -X GET "localhost:8085/testing?name=appleboy&addresses=foo,bar&birthday=199 ### Bind Uri -See the [detail information](https://github.com/gin-gonic/gin/issues/846). +See the [detailed information](https://github.com/gin-gonic/gin/issues/846). ```go package main @@ -1379,7 +1379,7 @@ func main() { ### Bind HTML checkboxes -See the [detail information](https://github.com/gin-gonic/gin/issues/129#issuecomment-124260092) +See the [detailed information](https://github.com/gin-gonic/gin/issues/129#issuecomment-124260092). main.go @@ -2413,7 +2413,7 @@ func main() { ### http2 server push -http.Pusher is supported only **go1.8+**. See the [golang blog](https://go.dev/blog/h2push) for detail information. +http.Pusher is supported only **go1.8+**. See the [golang blog](https://go.dev/blog/h2push) for detailed information. ```go package main