Pārlūkot izejas kodu

Merge pull request #1366 from allencloud/fix-typo-in-comment-and-log

fix typo in comments and log
Jana Radhakrishnan 9 gadi atpakaļ
vecāks
revīzija
8825f80d8c

+ 1 - 1
libnetwork/controller.go

@@ -97,7 +97,7 @@ type NetworkController interface {
 	// Sandboxes returns the list of Sandbox(s) managed by this controller.
 	// Sandboxes returns the list of Sandbox(s) managed by this controller.
 	Sandboxes() []Sandbox
 	Sandboxes() []Sandbox
 
 
-	// WlakSandboxes uses the provided function to walk the Sandbox(s) managed by this controller.
+	// WalkSandboxes uses the provided function to walk the Sandbox(s) managed by this controller.
 	WalkSandboxes(walker SandboxWalker)
 	WalkSandboxes(walker SandboxWalker)
 
 
 	// SandboxByID returns the Sandbox which has the passed id. If not found, a types.NotFoundError is returned.
 	// SandboxByID returns the Sandbox which has the passed id. If not found, a types.NotFoundError is returned.

+ 2 - 2
libnetwork/default_gateway.go

@@ -14,7 +14,7 @@ const (
 var procGwNetwork = make(chan (bool), 1)
 var procGwNetwork = make(chan (bool), 1)
 
 
 /*
 /*
-   libnetwork creates a bridge network "docker_gw_bridge" for provding
+   libnetwork creates a bridge network "docker_gw_bridge" for providing
    default gateway for the containers if none of the container's endpoints
    default gateway for the containers if none of the container's endpoints
    have GW set by the driver. ICC is set to false for the GW_bridge network.
    have GW set by the driver. ICC is set to false for the GW_bridge network.
 
 
@@ -29,7 +29,7 @@ var procGwNetwork = make(chan (bool), 1)
 
 
 func (sb *sandbox) setupDefaultGW() error {
 func (sb *sandbox) setupDefaultGW() error {
 
 
-	// check if the conitainer already has a GW endpoint
+	// check if the container already has a GW endpoint
 	if ep := sb.getEndpointInGWNetwork(); ep != nil {
 	if ep := sb.getEndpointInGWNetwork(); ep != nil {
 		return nil
 		return nil
 	}
 	}

+ 1 - 1
libnetwork/drivers/bridge/bridge.go

@@ -564,7 +564,7 @@ func (d *driver) CreateNetwork(id string, option map[string]interface{}, nInfo d
 	}
 	}
 	d.Unlock()
 	d.Unlock()
 
 
-	// Parse and validate the config. It should not conflict with existing networks' config
+	// Parse and validate the config. It should not be conflict with existing networks' config
 	config, err := parseNetworkOptions(id, option)
 	config, err := parseNetworkOptions(id, option)
 	if err != nil {
 	if err != nil {
 		return err
 		return err