From f5e350d6636a079408016087576dbfe115cc43fe Mon Sep 17 00:00:00 2001 From: chen quan Date: Wed, 27 Jul 2022 09:11:15 +0800 Subject: [PATCH] fix(httpc): fix typo errors (#2189) --- rest/httpc/responses.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest/httpc/responses.go b/rest/httpc/responses.go index 560e19509e9cb..457271403b7dc 100644 --- a/rest/httpc/responses.go +++ b/rest/httpc/responses.go @@ -18,12 +18,12 @@ func Parse(resp *http.Response, val interface{}) error { return ParseJsonBody(resp, val) } -// ParseHeaders parses the rsponse headers. +// ParseHeaders parses the response headers. func ParseHeaders(resp *http.Response, val interface{}) error { return encoding.ParseHeaders(resp.Header, val) } -// ParseJsonBody parses the rsponse body, which should be in json content type. +// ParseJsonBody parses the response body, which should be in json content type. func ParseJsonBody(resp *http.Response, val interface{}) error { if withJsonBody(resp) { return mapping.UnmarshalJsonReader(resp.Body, val)