lint: fix typo

This commit is contained in:
Eyal Posener 2017-08-25 09:41:42 +03:00 committed by GitHub
parent 2b9ace50d6
commit 91e5b1f44a
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ type Flags map[string]Predictor
// Predict completion of flags names according to command line arguments
func (f Flags) Predict(a Args) (prediction []string) {
for flag := range f {
// If the flag starts with a hyphen, we avoid emiting the prediction
// If the flag starts with a hyphen, we avoid emitting the prediction
// unless the last typed arg contains a hyphen as well.
flagHyphenStart := len(flag) != 0 && flag[0] == '-'
lastHyphenStart := len(a.Last) != 0 && a.Last[0] == '-'