Skip to content

Commit 11407e7

Browse files
jbamptonthinkerou
authored andcommitted
Fix spelling. (#1861)
1 parent f9de604 commit 11407e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ginS/gins.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func StaticFS(relativePath string, fs http.FileSystem) gin.IRoutes {
118118
return engine().StaticFS(relativePath, fs)
119119
}
120120

121-
// Use attachs a global middleware to the router. ie. the middlewares attached though Use() will be
121+
// Use attaches a global middleware to the router. ie. the middlewares attached though Use() will be
122122
// included in the handlers chain for every single request. Even 404, 405, static files...
123123
// For example, this is the right place for a logger or error management middleware.
124124
func Use(middlewares ...gin.HandlerFunc) gin.IRoutes {
@@ -153,7 +153,7 @@ func RunUnix(file string) (err error) {
153153

154154
// RunFd attaches the router to a http.Server and starts listening and serving HTTP requests
155155
// through the specified file descriptor.
156-
// Note: thie method will block the calling goroutine indefinitely unless on error happens.
156+
// Note: the method will block the calling goroutine indefinitely unless on error happens.
157157
func RunFd(fd int) (err error) {
158158
return engine().RunFd(fd)
159159
}

0 commit comments

Comments
 (0)