From 5c161ade98107ce48a77e3525321c436734a43ec Mon Sep 17 00:00:00 2001 From: allencloud Date: Mon, 28 Mar 2016 18:57:55 +0800 Subject: [PATCH] fix typos Signed-off-by: allencloud --- daemon/config.go | 8 ++++---- daemon/daemon.go | 3 ++- opts/opts.go | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/daemon/config.go b/daemon/config.go index 5f69bb8d48..ce51714192 100644 --- a/daemon/config.go +++ b/daemon/config.go @@ -33,7 +33,7 @@ var flatOptions = map[string]bool{ // LogConfig represents the default log configuration. // It includes json tags to deserialize configuration from a file -// using the same names that the flags in the command line uses. +// using the same names that the flags in the command line use. type LogConfig struct { Type string `json:"log-driver,omitempty"` Config map[string]string `json:"log-opts,omitempty"` @@ -41,17 +41,17 @@ type LogConfig struct { // CommonTLSOptions defines TLS configuration for the daemon server. // It includes json tags to deserialize configuration from a file -// using the same names that the flags in the command line uses. +// using the same names that the flags in the command line use. type CommonTLSOptions struct { CAFile string `json:"tlscacert,omitempty"` CertFile string `json:"tlscert,omitempty"` KeyFile string `json:"tlskey,omitempty"` } -// CommonConfig defines the configuration of a docker daemon which are +// CommonConfig defines the configuration of a docker daemon which is // common across platforms. // It includes json tags to deserialize configuration from a file -// using the same names that the flags in the command line uses. +// using the same names that the flags in the command line use. type CommonConfig struct { AuthorizationPlugins []string `json:"authorization-plugins,omitempty"` // AuthorizationPlugins holds list of authorization plugins AutoRestart bool `json:"-"` diff --git a/daemon/daemon.go b/daemon/daemon.go index e51be663bc..7dfc5dfa34 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -1591,8 +1591,9 @@ func (daemon *Daemon) initDiscovery(config *Config) error { // Reload reads configuration changes and modifies the // daemon according to those changes. -// This are the settings that Reload changes: +// These are the settings that Reload changes: // - Daemon labels. +// - Daemon debug log level. // - Cluster discovery (reconfigure and restart). func (daemon *Daemon) Reload(config *Config) error { daemon.configStore.reloadLock.Lock() diff --git a/opts/opts.go b/opts/opts.go index 05aadbe74b..a56c0cc42e 100644 --- a/opts/opts.go +++ b/opts/opts.go @@ -36,7 +36,7 @@ func (opts *ListOpts) String() string { return fmt.Sprintf("%v", []string((*opts.values))) } -// Set validates if needed the input value and add it to the +// Set validates if needed the input value and adds it to the // internal slice. func (opts *ListOpts) Set(value string) error { if opts.validator != nil {