Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2202 from mike-lloyd03/fix_preware_typo
Browse files Browse the repository at this point in the history
Fix typo in doc for PreWare and PreWares
  • Loading branch information
fasmat authored Jan 26, 2022
2 parents 9c3417e + 262b000 commit cba76d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type Options struct {
// PreHandlers are http.Handlers that are called between the http.Server
// and the buffalo Application.
PreHandlers []http.Handler `json:"-"`
// PreWare takes an http.Handler and returns and http.Handler
// PreWare takes an http.Handler and returns an http.Handler
// and acts as a pseudo-middleware between the http.Server and
// a Buffalo application.
PreWares []PreWare `json:"-"`
Expand All @@ -73,7 +73,7 @@ type Options struct {
cancel context.CancelFunc
}

// PreWare takes an http.Handler and returns and http.Handler
// PreWare takes an http.Handler and returns an http.Handler
// and acts as a pseudo-middleware between the http.Server and
// a Buffalo application.
type PreWare func(http.Handler) http.Handler
Expand Down

0 comments on commit cba76d5

Please sign in to comment.