Browse code

Fix some typos

Signed-off-by: Xiaoxi He <xxhe@alauda.io>

Xiaoxi He authored on 2018/09/07 12:26:04
Showing 4 changed files
... ...
@@ -99,7 +99,7 @@ be found.
99 99
 * Add `--format` option to `docker node ls` [#30424](https://github.com/docker/docker/pull/30424)
100 100
 * Add `--prune` option to `docker stack deploy` to remove services that are no longer defined in the docker-compose file [#31302](https://github.com/docker/docker/pull/31302)
101 101
 * Add `PORTS` column for `docker service ls` when using `ingress` mode [#30813](https://github.com/docker/docker/pull/30813)
102
-- Fix unnescessary re-deploying of tasks when environment-variables are used [#32364](https://github.com/docker/docker/pull/32364)
102
+- Fix unnecessary re-deploying of tasks when environment-variables are used [#32364](https://github.com/docker/docker/pull/32364)
103 103
 - Fix `docker stack deploy` not supporting `endpoint_mode` when deploying from a docker compose file  [#32333](https://github.com/docker/docker/pull/32333)
104 104
 - Proceed with startup if cluster component cannot be created to allow recovering from a broken swarm setup [#31631](https://github.com/docker/docker/pull/31631)
105 105
 
... ...
@@ -120,7 +120,7 @@ type NetworkStats struct {
120 120
 	RxBytes uint64 `json:"rx_bytes"`
121 121
 	// Packets received. Windows and Linux.
122 122
 	RxPackets uint64 `json:"rx_packets"`
123
-	// Received errors. Not used on Windows. Note that we dont `omitempty` this
123
+	// Received errors. Not used on Windows. Note that we don't `omitempty` this
124 124
 	// field as it is expected in the >=v1.21 API stats structure.
125 125
 	RxErrors uint64 `json:"rx_errors"`
126 126
 	// Incoming packets dropped. Windows and Linux.
... ...
@@ -180,7 +180,7 @@ func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
180 180
 
181 181
 	d.StoreHosts(hosts)
182 182
 
183
-	// validate after NewDaemon has restored enabled plugins. Dont change order.
183
+	// validate after NewDaemon has restored enabled plugins. Don't change order.
184 184
 	if err := validateAuthzPlugins(cli.Config.AuthorizationPlugins, pluginStore); err != nil {
185 185
 		return errors.Wrap(err, "failed to validate authorization plugin")
186 186
 	}
... ...
@@ -135,7 +135,7 @@ func TestCreateWithDuplicateNetworkNames(t *testing.T) {
135 135
 		network.WithDriver("bridge"),
136 136
 	)
137 137
 
138
-	// Dupliates with name but with different driver
138
+	// Duplicates with name but with different driver
139 139
 	n3 := network.CreateNoError(t, context.Background(), client, name,
140 140
 		network.WithDriver("overlay"),
141 141
 	)