Fix some typos in comments and strings

Most of them were found and fixed by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>

rewritten from github.com/moby/moby 2eee613326fb59fd168849618d14a9054a40f9f5
docker-18.09
Stefan Weil 2016-02-22 20:22:20 +01:00 committed by Tonis Tiigi
parent ec19aea8e6
commit 84853bd3f3
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ func parseWords(rest string) []string {
if unicode.IsSpace(ch) { // skip spaces if unicode.IsSpace(ch) { // skip spaces
continue continue
} }
phase = inWord // found it, fall thru phase = inWord // found it, fall through
} }
if (phase == inWord || phase == inQuote) && (pos == len(rest)) { if (phase == inWord || phase == inQuote) && (pos == len(rest)) {
if blankOK || len(word) > 0 { if blankOK || len(word) > 0 {

View File

@ -118,7 +118,7 @@ func extractBuilderFlags(line string) (string, []string, error) {
return line[pos:], words, nil return line[pos:], words, nil
} }
phase = inWord // found someting with "--", fall thru phase = inWord // found someting with "--", fall through
} }
if (phase == inWord || phase == inQuote) && (pos == len(line)) { if (phase == inWord || phase == inQuote) && (pos == len(line)) {
if word != "--" && (blankOK || len(word) > 0) { if word != "--" && (blankOK || len(word) > 0) {