From b270a4c0d10947fe480bad7330b31bb793225968 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 28 Apr 2022 15:43:08 +0200 Subject: 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. --- internal/options/options.go | 4 ++-- 1 file 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 -- cgit v1.2.3