From 913e12c8ff1ce0f8a8540dbde3aa8c4c6d8f0bb7 Mon Sep 17 00:00:00 2001 From: bin liu Date: Wed, 22 Jun 2016 12:40:21 +0800 Subject: [PATCH] fix typos Signed-off-by: bin liu --- configuration/configuration.go | 4 ++-- registry/api/errcode/register.go | 2 +- registry/storage/manifeststore.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configuration/configuration.go b/configuration/configuration.go index 0e264f61..7277c036 100644 --- a/configuration/configuration.go +++ b/configuration/configuration.go @@ -33,7 +33,7 @@ type Configuration struct { // the logger context. Fields map[string]interface{} `yaml:"fields,omitempty"` - // Hooks allows users to configurate the log hooks, to enabling the + // Hooks allows users to configure the log hooks, to enabling the // sequent handling behavior, when defined levels of log message emit. Hooks []LogHook `yaml:"hooks,omitempty"` } @@ -204,7 +204,7 @@ type MailOptions struct { // Password defines password of login user Password string `yaml:"password,omitempty"` - // Insecure defines if smtp login skips the secure cerification. + // Insecure defines if smtp login skips the secure certification. Insecure bool `yaml:"insecure,omitempty"` } `yaml:"smtp,omitempty"` diff --git a/registry/api/errcode/register.go b/registry/api/errcode/register.go index 71cf6f7a..d1e8826c 100644 --- a/registry/api/errcode/register.go +++ b/registry/api/errcode/register.go @@ -55,7 +55,7 @@ var ( HTTPStatusCode: http.StatusForbidden, }) - // ErrorCodeUnavailable provides a common error to report unavialability + // ErrorCodeUnavailable provides a common error to report unavailability // of a service or endpoint. ErrorCodeUnavailable = Register("errcode", ErrorDescriptor{ Value: "UNAVAILABLE", diff --git a/registry/storage/manifeststore.go b/registry/storage/manifeststore.go index 68483c95..9e8065bb 100644 --- a/registry/storage/manifeststore.go +++ b/registry/storage/manifeststore.go @@ -123,7 +123,7 @@ func (ms *manifestStore) Put(ctx context.Context, manifest distribution.Manifest return "", fmt.Errorf("unrecognized manifest type %T", manifest) } -// Delete removes the revision of the specified manfiest. +// Delete removes the revision of the specified manifest. func (ms *manifestStore) Delete(ctx context.Context, dgst digest.Digest) error { context.GetLogger(ms.ctx).Debug("(*manifestStore).Delete") return ms.blobStore.Delete(ctx, dgst)