1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Merge pull request #21250 from runcom/comment-fix

registry: endpoint_v1: fix outdated comment
This commit is contained in:
Vincent Demeester
2016-03-16 14:35:14 +01:00

View File

@@ -21,8 +21,7 @@ type V1Endpoint struct {
IsSecure bool
}
// NewV1Endpoint parses the given address to return a registry endpoint. v can be used to
// specify a specific endpoint version
// NewV1Endpoint parses the given address to return a registry endpoint.
func NewV1Endpoint(index *registrytypes.IndexInfo, userAgent string, metaHeaders http.Header) (*V1Endpoint, error) {
tlsConfig, err := newTLSConfig(index.Name, index.Secure)
if err != nil {