summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-08-25 09:41:42 +0300
committerGitHub <[email protected]>2017-08-25 09:41:42 +0300
commit91e5b1f44aaf66170b8e890442035731cd4aa60d (patch)
treec475a9f6c7cae244a26bf01e6950cb8f59b494b3
parent2b9ace50d6baef8456aa9cfb65b961b00888a54c (diff)
lint: fix typo
-rw-r--r--command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.go b/command.go
index c3e7e97..6de48e9 100644
--- a/command.go
+++ b/command.go
@@ -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] == '-'