diff --git a/libnetwork/config/config.go b/libnetwork/config/config.go index 80d2fc3af7..320eb39e00 100644 --- a/libnetwork/config/config.go +++ b/libnetwork/config/config.go @@ -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) diff --git a/libnetwork/endpoint.go b/libnetwork/endpoint.go index de08c4210f..98d1b78501 100644 --- a/libnetwork/endpoint.go +++ b/libnetwork/endpoint.go @@ -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 Option[...](...) type EndpointOption func(ep *endpoint) diff --git a/libnetwork/network.go b/libnetwork/network.go index 2fe49062f0..f600ae7c3b 100644 --- a/libnetwork/network.go +++ b/libnetwork/network.go @@ -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 { diff --git a/libnetwork/sandbox.go b/libnetwork/sandbox.go index 2f69897d12..aef47aa099 100644 --- a/libnetwork/sandbox.go +++ b/libnetwork/sandbox.go @@ -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)