Skip to content

Commit

Permalink
docs/man/mangen.go: fix type error
Browse files Browse the repository at this point in the history
When calling flag.Bool(), we note that it returns a bool pointer
(`*bool`), instead of bool value (`bool`). As such, let's make sure that
we de-reference *bool -> bool before performing operations against it.
  • Loading branch information
ttaylorr committed Aug 1, 2018
1 parent 095c033 commit 1c2185d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/man/mangen.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func infof(w io.Writer, format string, a ...interface{}) {
if !verbose {
if !*verbose {
return
}
fmt.Fprintf(w, format, a...)
Expand Down

0 comments on commit 1c2185d

Please sign in to comment.