Skip to content

Commit

Permalink
Fix spelling. (#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored and thinkerou committed Apr 22, 2019
1 parent f9de604 commit 11407e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ginS/gins.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func StaticFS(relativePath string, fs http.FileSystem) gin.IRoutes {
return engine().StaticFS(relativePath, fs)
}

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

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

0 comments on commit 11407e7

Please sign in to comment.