瀏覽代碼

Merge pull request #36424 from liubin/fix-typo

Fix typos in builder and client
Vincent Demeester 7 年之前
父節點
當前提交
5b124d7422
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      builder/dockerfile/instructions/commands.go
  2. 1 1
      client/client_test.go

+ 2 - 2
builder/dockerfile/instructions/commands.go

@@ -9,7 +9,7 @@ import (
 	"github.com/docker/docker/api/types/strslice"
 )
 
-// KeyValuePair represent an arbitrary named value (useful in slice insted of map[string] string to preserve ordering)
+// KeyValuePair represent an arbitrary named value (useful in slice instead of map[string] string to preserve ordering)
 type KeyValuePair struct {
 	Key   string
 	Value string
@@ -195,7 +195,7 @@ func (c *WorkdirCommand) Expand(expander SingleWordExpander) error {
 	return nil
 }
 
-// ShellDependantCmdLine represents a cmdline optionaly prepended with the shell
+// ShellDependantCmdLine represents a cmdline optionally prepended with the shell
 type ShellDependantCmdLine struct {
 	CmdLine      strslice.StrSlice
 	PrependShell bool

+ 1 - 1
client/client_test.go

@@ -248,7 +248,7 @@ func TestNegotiateAPIVersion(t *testing.T) {
 }
 
 // TestNegotiateAPIVersionOverride asserts that we honor
-// the environment variable DOCKER_API_VERSION when negotianing versions
+// the environment variable DOCKER_API_VERSION when negotiating versions
 func TestNegotiateAPVersionOverride(t *testing.T) {
 	expected := "9.99"
 	defer env.PatchAll(t, map[string]string{"DOCKER_API_VERSION": expected})()