From d1f36d46c9b2ea29a14dc7ecd2751f17a2c473bc Mon Sep 17 00:00:00 2001 From: ruicao Date: Fri, 7 Sep 2018 18:13:53 +0800 Subject: [PATCH] Fix some typos Signed-off-by: ruicao --- docs/spec/auth/oauth.md | 2 +- manifest/ocischema/manifest.go | 2 +- manifest/schema1/manifest.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/spec/auth/oauth.md b/docs/spec/auth/oauth.md index f4fdec810..f646f454a 100644 --- a/docs/spec/auth/oauth.md +++ b/docs/spec/auth/oauth.md @@ -39,7 +39,7 @@ Content-Type: application/x-www-form-urlencoded
(REQUIRED) Type of grant used to get token. When getting a refresh token using credentials this type should be set to "password" and have the - accompanying username and password paramters. Type "authorization_code" + accompanying username and password parameters. Type "authorization_code" is reserved for future use for authenticating to an authorization server without having to send credentials directly from the client. When requesting an access token with a refresh token this should be set to diff --git a/manifest/ocischema/manifest.go b/manifest/ocischema/manifest.go index 6de17f9ac..09ce78b5d 100644 --- a/manifest/ocischema/manifest.go +++ b/manifest/ocischema/manifest.go @@ -52,7 +52,7 @@ type Manifest struct { Annotations map[string]string `json:"annotations,omitempty"` } -// References returnes the descriptors of this manifests references. +// References returns the descriptors of this manifests references. func (m Manifest) References() []distribution.Descriptor { references := make([]distribution.Descriptor, 0, 1+len(m.Layers)) references = append(references, m.Config) diff --git a/manifest/schema1/manifest.go b/manifest/schema1/manifest.go index 65042a75f..5a06b54bc 100644 --- a/manifest/schema1/manifest.go +++ b/manifest/schema1/manifest.go @@ -138,7 +138,7 @@ func (sm *SignedManifest) UnmarshalJSON(b []byte) error { return nil } -// References returnes the descriptors of this manifests references +// References returns the descriptors of this manifests references func (sm SignedManifest) References() []distribution.Descriptor { dependencies := make([]distribution.Descriptor, len(sm.FSLayers)) for i, fsLayer := range sm.FSLayers {