Browse code

Merge pull request #36424 from liubin/fix-typo

Fix typos in builder and client

Vincent Demeester authored on 2018/02/27 18:24:20
Showing 2 changed files
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/docker/api/types/strslice"
10 10
 )
11 11
 
12
-// KeyValuePair represent an arbitrary named value (useful in slice insted of map[string] string to preserve ordering)
12
+// KeyValuePair represent an arbitrary named value (useful in slice instead of map[string] string to preserve ordering)
13 13
 type KeyValuePair struct {
14 14
 	Key   string
15 15
 	Value string
... ...
@@ -195,7 +195,7 @@ func (c *WorkdirCommand) Expand(expander SingleWordExpander) error {
195 195
 	return nil
196 196
 }
197 197
 
198
-// ShellDependantCmdLine represents a cmdline optionaly prepended with the shell
198
+// ShellDependantCmdLine represents a cmdline optionally prepended with the shell
199 199
 type ShellDependantCmdLine struct {
200 200
 	CmdLine      strslice.StrSlice
201 201
 	PrependShell bool
... ...
@@ -248,7 +248,7 @@ func TestNegotiateAPIVersion(t *testing.T) {
248 248
 }
249 249
 
250 250
 // TestNegotiateAPIVersionOverride asserts that we honor
251
-// the environment variable DOCKER_API_VERSION when negotianing versions
251
+// the environment variable DOCKER_API_VERSION when negotiating versions
252 252
 func TestNegotiateAPVersionOverride(t *testing.T) {
253 253
 	expected := "9.99"
254 254
 	defer env.PatchAll(t, map[string]string{"DOCKER_API_VERSION": expected})()