resolve typo comments

This commit is contained in:
Tim Möhlmann 2023-09-27 10:03:03 +03:00
parent c6f6a8800d
commit f6cb47fbbb
3 changed files with 4 additions and 4 deletions

View file

@ -180,7 +180,7 @@ func newRequest[T any](r *http.Request, data *T) *Request[T] {
} }
// ClientRequest is a Request with a verified client attached to it. // ClientRequest is a Request with a verified client attached to it.
// Methods the receive this argument may assume the client was authenticated, // Methods that receive this argument may assume the client was authenticated,
// or verified to be a public client. // or verified to be a public client.
// //
// EXPERIMENTAL: may change until v4 // EXPERIMENTAL: may change until v4
@ -210,7 +210,7 @@ type Response struct {
// can extend the standard types as they wish. // can extend the standard types as they wish.
// However, each method will recommend which // However, each method will recommend which
// (base) type to use as model, in order to // (base) type to use as model, in order to
// be complaint with the standards. // be compliant with the standards.
Data any Data any
} }

View file

@ -41,7 +41,7 @@ func RegisterServer(server Server, options ...ServerOption) http.Handler {
type ServerOption func(s *webServer) type ServerOption func(s *webServer)
// WithHTTPMiddler sets the passed middleware chain to the root of // WithHTTPMiddleware sets the passed middleware chain to the root of
// the Server's router. // the Server's router.
func WithHTTPMiddleware(m ...func(http.Handler) http.Handler) ServerOption { func WithHTTPMiddleware(m ...func(http.Handler) http.Handler) ServerOption {
return func(s *webServer) { return func(s *webServer) {

View file

@ -745,7 +745,7 @@ func Test_webServer_codeExchangeHandler(t *testing.T) {
}, },
}, },
{ {
name: "unimplemented JWTProfile called", name: "unimplemented CodeExchange called",
decoder: testDecoder, decoder: testDecoder,
r: httptest.NewRequest(http.MethodPost, "/", strings.NewReader("code=123&redirect_uri=https://example.com/callback")), r: httptest.NewRequest(http.MethodPost, "/", strings.NewReader("code=123&redirect_uri=https://example.com/callback")),
want: webServerResult{ want: webServerResult{