From 182b2d5bd6d6aa7f016a4b7bf2b4f23bfc65879c Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Tue, 17 Oct 2017 11:30:05 +0800 Subject: [PATCH] Typo fixed and simple code. Signed-off-by: Ri Xu rewritten from github.com/moby/moby 87e8a936e82ecfbef59b829d8bbfca3fb4aa3163 --- frontend/dockerfile/instructions/commands.go | 2 +- frontend/dockerfile/instructions/parse.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/dockerfile/instructions/commands.go b/frontend/dockerfile/instructions/commands.go index 8d5d6b09..0863e6b5 100644 --- a/frontend/dockerfile/instructions/commands.go +++ b/frontend/dockerfile/instructions/commands.go @@ -9,7 +9,7 @@ import ( "github.com/docker/docker/api/types/strslice" ) -// KeyValuePair represent an arbitrary named value (usefull in slice insted of map[string] string to preserve ordering) +// KeyValuePair represent an arbitrary named value (useful in slice insted of map[string] string to preserve ordering) type KeyValuePair struct { Key string Value string diff --git a/frontend/dockerfile/instructions/parse.go b/frontend/dockerfile/instructions/parse.go index 86ddc57b..0f7c69d2 100644 --- a/frontend/dockerfile/instructions/parse.go +++ b/frontend/dockerfile/instructions/parse.go @@ -105,7 +105,7 @@ func ParseCommand(node *parser.Node) (Command, error) { return nil, errors.Errorf("%T is not a command type", s) } -// UnknownInstruction represents an error occuring when a command is unresolvable +// UnknownInstruction represents an error occurring when a command is unresolvable type UnknownInstruction struct { Line int Instruction string