From ffdaf4b6d0bb304f28d93a758edcaf2d2a118819 Mon Sep 17 00:00:00 2001 From: Joel Unzain Date: Wed, 21 Mar 2018 22:22:43 -0700 Subject: [PATCH] fix minor comment typos --- transport/http/encode_decode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/http/encode_decode.go b/transport/http/encode_decode.go index 3076e4d2a..2b0334b06 100644 --- a/transport/http/encode_decode.go +++ b/transport/http/encode_decode.go @@ -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