Procházet zdrojové kódy

fix typo

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
Zhang Wei před 10 roky
rodič
revize
1f28387d21
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      libnetwork/controller.go

+ 2 - 3
libnetwork/controller.go

@@ -17,7 +17,7 @@ create network namespaces and allocate interfaces for containers to use.
 	}
 
 	// Create a network for containers to join.
-	// NewNetwork accepts Variadic optional arguments that libnetwork and Drivers can make of
+	// NewNetwork accepts Variadic optional arguments that libnetwork and Drivers can make use of
 	network, err := controller.NewNetwork(networkType, "network1")
 	if err != nil {
 		return
@@ -32,8 +32,7 @@ create network namespaces and allocate interfaces for containers to use.
 		return
 	}
 
-	// A container can join the endpoint by providing the container ID to the join
-	// api.
+	// A container can join the endpoint by providing the container ID to the join api.
 	// Join accepts Variadic arguments which will be made use of by libnetwork and Drivers
 	err = ep.Join("container1",
 		libnetwork.JoinOptionHostname("test"),