Skip to content

Commit

Permalink
Merge pull request #210 from dsbrng25b/master
Browse files Browse the repository at this point in the history
Fix package doc
  • Loading branch information
therealmitchconnors committed Aug 13, 2019
2 parents 24fa697 + 4890c25 commit 7be56ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flag.go
Expand Up @@ -57,9 +57,9 @@ that give one-letter shorthands for flags. You can use these by appending
var ip = flag.IntP("flagname", "f", 1234, "help message")
var flagvar bool
func init() {
flag.BoolVarP("boolname", "b", true, "help message")
flag.BoolVarP(&flagvar, "boolname", "b", true, "help message")
}
flag.VarP(&flagVar, "varname", "v", 1234, "help message")
flag.VarP(&flagval, "varname", "v", "help message")
Shorthand letters can be used with single dashes on the command line.
Boolean shorthand flags can be combined with other shorthand flags.
Expand Down

0 comments on commit 7be56ae

Please sign in to comment.