Skip to content

Commit 072a8a1

Browse files
committed
fix a comment
1 parent b5bc5ec commit 072a8a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

middleware/echo/echo.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import (
1212
// Handler returns a Echo compatible middleware from a Middleware factory instance.
1313
// The first handlerID argument is the same argument passed on Middleware.Handler method.
1414
func Handler(handlerID string, m middleware.Middleware) echo.MiddlewareFunc {
15-
// Create a dummy handler to wrap the middleware chain of Gin, this way Middleware
16-
// interface can wrap the Gin chain.
15+
// Wrap wrapping handler with echo's WrapMiddleware helper
1716
return echo.WrapMiddleware(func(next http.Handler) http.Handler {
1817
return m.Handler(handlerID, next)
1918
})

0 commit comments

Comments
 (0)