Fixes some typo errors

Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
This commit is contained in:
wenchma 2016-01-11 18:15:20 +08:00
parent 88040e2e05
commit 0b07ad6202
4 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@ func ParseConfig(tomlCfgFile string) (*Config, error) {
return cfg, nil
}
// Option is a option setter function type used to pass varios configurations
// Option is an option setter function type used to pass various configurations
// to the controller
type Option func(c *Config)

View file

@ -44,7 +44,7 @@ type Endpoint interface {
Delete() error
}
// EndpointOption is a option setter function type used to pass varios options to Network
// EndpointOption is an option setter function type used to pass various options to Network
// and Endpoint interfaces methods. The various setter functions of type EndpointOption are
// provided by libnetwork, they look like <Create|Join|Leave>Option[...](...)
type EndpointOption func(ep *endpoint)

View file

@ -459,7 +459,7 @@ func (n *network) UnmarshalJSON(b []byte) (err error) {
return nil
}
// NetworkOption is a option setter function type used to pass varios options to
// NetworkOption is an option setter function type used to pass various options to
// NewNetwork method. The various setter functions of type NetworkOption are
// provided by libnetwork, they look like NetworkOptionXXXX(...)
type NetworkOption func(n *network)
@ -679,7 +679,7 @@ func (n *network) CreateEndpoint(name string, options ...EndpointOption) (Endpoi
ep.id = stringid.GenerateRandomID()
// Initialize ep.network with a possibly stale copy of n. We need this to get network from
// store. But once we get it from store we will have the most uptodate copy possible.
// store. But once we get it from store we will have the most uptodate copy possibly.
ep.network = n
ep.network, err = ep.getNetworkFromStore()
if err != nil {

View file

@ -48,7 +48,7 @@ type Sandbox interface {
ResolveIP(name string) string
}
// SandboxOption is a option setter function type used to pass varios options to
// SandboxOption is an option setter function type used to pass various options to
// NewNetContainer method. The various setter functions of type SandboxOption are
// provided by libnetwork, they look like ContainerOptionXXXX(...)
type SandboxOption func(sb *sandbox)