Skip to content

Commit

Permalink
fix some weird typos due to tabs in the comments + gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Davis <[email protected]>
  • Loading branch information
Doug Davis committed Oct 23, 2023
1 parent bdccbb7 commit 8e719ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions v2/protocol/http/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type RequestData struct {
}

// WithRequestDataAtContext uses the http.Request to add RequestData
//
// information to the Context.
// information to the Context.
func WithRequestDataAtContext(ctx context.Context, r *nethttp.Request) context.Context {
if r == nil {
return ctx
Expand Down
3 changes: 1 addition & 2 deletions v2/types/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ func Format(v interface{}) (string, error) {
}

// Validate v is a valid CloudEvents attribute value, convert it to one of:
//
// bool, int32, string, []byte, types.URI, types.URIRef, types.Timestamp
// bool, int32, string, []byte, types.URI, types.URIRef, types.Timestamp
func Validate(v interface{}) (interface{}, error) {
switch v := v.(type) {
case bool, int32, string, []byte:
Expand Down

0 comments on commit 8e719ec

Please sign in to comment.