Skip to content

Commit bec368a

Browse files
authored
Fix a typo in maybe middleware doc (#889)
1 parent 7446950 commit bec368a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware/maybe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "net/http"
44

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

0 commit comments

Comments
 (0)