From d265da7356ae8c272d73bb7d1d321935dc7bf9a2 Mon Sep 17 00:00:00 2001 From: allencloud Date: Sun, 8 May 2016 09:36:10 +0800 Subject: [PATCH] fix typos Signed-off-by: allencloud --- docs/registry.go | 2 +- docs/session.go | 2 +- docs/types.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/registry.go b/docs/registry.go index 0b5a070e3..973bff9f9 100644 --- a/docs/registry.go +++ b/docs/registry.go @@ -114,7 +114,7 @@ func DockerHeaders(userAgent string, metaHeaders http.Header) []transport.Reques return modifiers } -// HTTPClient returns a HTTP client structure which uses the given transport +// HTTPClient returns an HTTP client structure which uses the given transport // and contains the necessary headers for redirected requests func HTTPClient(transport http.RoundTripper) *http.Client { return &http.Client{ diff --git a/docs/session.go b/docs/session.go index 5647ad286..82593cd7e 100644 --- a/docs/session.go +++ b/docs/session.go @@ -95,7 +95,7 @@ func cloneRequest(r *http.Request) *http.Request { return r2 } -// RoundTrip changes a HTTP request's headers to add the necessary +// RoundTrip changes an HTTP request's headers to add the necessary // authentication-related headers func (tr *authTransport) RoundTrip(orig *http.Request) (*http.Response, error) { // Authorization should not be set on 302 redirect for untrusted locations. diff --git a/docs/types.go b/docs/types.go index 4247fed6f..601fa09ed 100644 --- a/docs/types.go +++ b/docs/types.go @@ -29,7 +29,7 @@ type ImgData struct { // indicates the registry's version and whether the registry claims to be a // standalone registry. type PingResult struct { - // Version is the registry version supplied by the registry in a HTTP + // Version is the registry version supplied by the registry in an HTTP // header Version string `json:"version"` // Standalone is set to true if the registry indicates it is a