Merge pull request #863 from wenchma/typo_error

Fixes some typo errors
This commit is contained in:
Madhu Venugopal 2016-01-16 12:23:52 -08:00
commit 69acfe6332
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(force bool) 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.locator = n.getController().clusterHostID()
ep.network, err = ep.getNetworkFromStore()

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)