Merge pull request #3300 from jubalh/sp

Fix minor spelling mistakes
This commit is contained in:
João Pereira 2021-02-06 16:03:09 +00:00 committed by GitHub
commit f82e1c2332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ type ErrorDescriptor struct {
// keyed value when serializing api errors.
Value string
// Message is a short, human readable decription of the error condition
// Message is a short, human readable description of the error condition
// included in API responses.
Message string

View file

@ -32,7 +32,7 @@ func NewURLBuilder(root *url.URL, relative bool) *URLBuilder {
}
}
// NewURLBuilderFromString workes identically to NewURLBuilder except it takes
// NewURLBuilderFromString works identically to NewURLBuilder except it takes
// a string argument for the root, returning an error if it is not a valid
// url.
func NewURLBuilderFromString(root string, relative bool) (*URLBuilder, error) {
@ -58,7 +58,7 @@ func NewURLBuilderFromRequest(r *http.Request, relative bool) *URLBuilder {
scheme = r.URL.Scheme
}
// Handle fowarded headers
// Handle forwarded headers
// Prefer "Forwarded" header as defined by rfc7239 if given
// see https://tools.ietf.org/html/rfc7239
if forwarded := r.Header.Get("Forwarded"); len(forwarded) > 0 {

View file

@ -38,7 +38,7 @@ type Manager interface {
}
// NewSimpleManager returns an instance of
// Manger which only maps endpoints to challenges
// Manager which only maps endpoints to challenges
// based on the responses which have been added the
// manager. The simple manager will make no attempt to
// perform requests on the endpoints or cache the responses