Merge pull request #2705 from mirake/fix-typo

Fix some typos
This commit is contained in:
Derek McGowan 2018-09-11 16:12:22 -07:00 committed by GitHub
commit a5c2fdc5b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ Content-Type: application/x-www-form-urlencoded
<dd> <dd>
(REQUIRED) Type of grant used to get token. When getting a refresh token (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 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 is reserved for future use for authenticating to an authorization server
without having to send credentials directly from the client. When without having to send credentials directly from the client. When
requesting an access token with a refresh token this should be set to requesting an access token with a refresh token this should be set to

View file

@ -52,7 +52,7 @@ type Manifest struct {
Annotations map[string]string `json:"annotations,omitempty"` 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 { func (m Manifest) References() []distribution.Descriptor {
references := make([]distribution.Descriptor, 0, 1+len(m.Layers)) references := make([]distribution.Descriptor, 0, 1+len(m.Layers))
references = append(references, m.Config) references = append(references, m.Config)

View file

@ -138,7 +138,7 @@ func (sm *SignedManifest) UnmarshalJSON(b []byte) error {
return nil return nil
} }
// References returnes the descriptors of this manifests references // References returns the descriptors of this manifests references
func (sm SignedManifest) References() []distribution.Descriptor { func (sm SignedManifest) References() []distribution.Descriptor {
dependencies := make([]distribution.Descriptor, len(sm.FSLayers)) dependencies := make([]distribution.Descriptor, len(sm.FSLayers))
for i, fsLayer := range sm.FSLayers { for i, fsLayer := range sm.FSLayers {