diff options
author | Albert <albertnigma@gmail.com> | 2016-09-12 12:32:11 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-12 12:32:11 +0300 |
commit | f0ac26c9449090d2ef125ae924baa1e5a6e25ed9 (patch) | |
tree | 764fe44854c5b05e996621f752db1cafdadf9603 /commands | |
parent | 3908489ccd328ad7dcbab3ff0bb5c53ee3da19e9 (diff) |
commands: Fix typos
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugo.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 339f7648a..fa9872c92 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -61,18 +61,18 @@ func Reset() error { return nil } -// userError is an error used to signal different error situations in command handling. +// commandError is an error used to signal different error situations in command handling. type commandError struct { s string userError bool } -func (u commandError) Error() string { - return u.s +func (c commandError) Error() string { + return c.s } -func (u commandError) isUserError() bool { - return u.userError +func (c commandError) isUserError() bool { + return c.userError } func newUserError(a ...interface{}) commandError { @@ -87,7 +87,7 @@ func newSystemErrorF(format string, a ...interface{}) commandError { return commandError{s: fmt.Sprintf(format, a...), userError: false} } -// catch some of the obvious user errors from Cobra. +// Catch some of the obvious user errors from Cobra. // We don't want to show the usage message for every error. // The below may be to generic. Time will show. var userErrorRegexp = regexp.MustCompile("argument|flag|shorthand") |