Skip to content

Commit

Permalink
fix minor comment typos (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe94 authored and peterbourgon committed Mar 22, 2018
1 parent ca4112b commit 618005d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/http/encode_decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
// DecodeRequestFunc extracts a user-domain request object from an HTTP
// request object. It's designed to be used in HTTP servers, for server-side
// endpoints. One straightforward DecodeRequestFunc could be something that
// JSON decodes from the request body to the concrete response type.
// JSON decodes from the request body to the concrete request type.
type DecodeRequestFunc func(context.Context, *http.Request) (request interface{}, err error)

// EncodeRequestFunc encodes the passed request object into the HTTP request
// object. It's designed to be used in HTTP clients, for client-side
// endpoints. One straightforward EncodeRequestFunc could something that JSON
// endpoints. One straightforward EncodeRequestFunc could be something that JSON
// encodes the object directly to the request body.
type EncodeRequestFunc func(context.Context, *http.Request, interface{}) error

Expand Down

0 comments on commit 618005d

Please sign in to comment.