Skip to content

Commit

Permalink
Fix a typo in maybe middleware doc (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromms authored Jan 23, 2024
1 parent 7446950 commit bec368a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/maybe.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "net/http"

// Maybe middleware will allow you to change the flow of the middleware stack execution depending on return
// value of maybeFn(request). This is useful for example if you'd like to skip a middleware handler if
// a request does not satisfied the maybeFn logic.
// a request does not satisfy the maybeFn logic.
func Maybe(mw func(http.Handler) http.Handler, maybeFn func(r *http.Request) bool) func(http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit bec368a

Please sign in to comment.