diff options
author | Linus Nordberg <linus@nordberg.se> | 2022-04-28 15:43:08 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2022-04-28 15:43:08 +0200 |
commit | b270a4c0d10947fe480bad7330b31bb793225968 (patch) | |
tree | 2d408798100392816bcd732d684b26d4444e4a04 | |
parent | 047500ae23a12469ce3e458c6a58a642716041b7 (diff) |
fix typos
We should consider stop writing function names in comments. They don't
add much. Actually they don't add anything except potentially
confusion when they don't match the actualy name which is checked by
the compiler.
-rw-r--r-- | internal/options/options.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/options/options.go b/internal/options/options.go index cc8e02a..8e4ab0c 100644 --- a/internal/options/options.go +++ b/internal/options/options.go @@ -36,7 +36,7 @@ func AddString(fs *flag.FlagSet, opt *string, short, long, value string) { fs.StringVar(opt, long, value, "") } -// AdUint64 adds an uint64 option to a flag set +// AddUint64 adds an uint64 option to a flag set func AddUint64(fs *flag.FlagSet, opt *uint64, short, long string, value uint64) { fs.Uint64Var(opt, short, value, "") fs.Uint64Var(opt, long, value, "") @@ -53,7 +53,7 @@ func CheckString(optionName, value string, err error) error { return nil } -// CheckUint checks that an uint64 option has a non-default value +// CheckUint64 checks that an uint64 option has a non-default value func CheckUint64(optionName string, value uint64, err error) error { if err != nil { return err |