diff options
author | Cameron Moore <[email protected]> | 2017-09-25 21:25:33 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-09-29 16:23:16 +0200 |
commit | 47fdfd5196cd24a23b30afe1d88969ffb413ab59 (patch) | |
tree | e2b4dc5bb5341ab2d8588879fb733ee888b9164b /tpl/fmt | |
parent | d45e358a0543d987091ef54b56eadd9cebda2e0f (diff) | |
download | hugo-47fdfd5196cd24a23b30afe1d88969ffb413ab59.tar.gz hugo-47fdfd5196cd24a23b30afe1d88969ffb413ab59.zip |
Clean up lint in various packages
Changes fall into one of the following:
- gofmt -s
- receiver name is inconsistent
- omit unused 2nd value from range
- godoc comment formed incorrectly
- err assigned and not used
- if block ends with a return statement followed by else
Diffstat (limited to 'tpl/fmt')
-rw-r--r-- | tpl/fmt/fmt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/fmt/fmt.go b/tpl/fmt/fmt.go index e9d47dbd4..96695442e 100644 --- a/tpl/fmt/fmt.go +++ b/tpl/fmt/fmt.go @@ -37,7 +37,7 @@ func (ns *Namespace) Printf(format string, a ...interface{}) string { } -// Print returns string representation of the passed arguments ending with a newline. +// Println returns string representation of the passed arguments ending with a newline. func (ns *Namespace) Println(a ...interface{}) string { return _fmt.Sprintln(a...) } |