From 4f8240aeabca5ad6ce74ea0148051131c03cb439 Mon Sep 17 00:00:00 2001 From: bin liu Date: Sat, 10 Feb 2018 19:27:14 +0800 Subject: [PATCH] Fix typos in builder and client Signed-off-by: bin liu Upstream-commit: ce0993270436c16a17e0afb08b9130556346b983 Component: engine --- components/engine/builder/dockerfile/instructions/commands.go | 4 ++-- components/engine/client/client_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/engine/builder/dockerfile/instructions/commands.go b/components/engine/builder/dockerfile/instructions/commands.go index ef435b27b3..d4f55ceb43 100644 --- a/components/engine/builder/dockerfile/instructions/commands.go +++ b/components/engine/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 diff --git a/components/engine/client/client_test.go b/components/engine/client/client_test.go index 59b08bd4c3..69a0460855 100644 --- a/components/engine/client/client_test.go +++ b/components/engine/client/client_test.go @@ -287,7 +287,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) { env := envToMap() defer mapToEnv(env)