diff options
| author | Tomas Aschan <[email protected]> | 2025-05-07 08:50:24 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-07 08:50:24 +0200 |
| commit | 957ea4b77e38a9c6673053aa3513a727393b6941 (patch) | |
| tree | 84bdddc0a15cb99f04f55e8837a9a8e73dc43634 | |
| parent | d661846b4df0d6611ad95577ddfb240474d21b7c (diff) | |
| parent | 155e7f39ce86bdc58e103be0e6c786df26f04c73 (diff) | |
Merge pull request #428 from co63oc/fix1
Fix typos
| -rw-r--r-- | count.go | 2 | ||||
| -rw-r--r-- | ipnet_slice.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -85,7 +85,7 @@ func (f *FlagSet) CountP(name, shorthand string, usage string) *int { // Count defines a count flag with specified name, default value, and usage string. // The return value is the address of an int variable that stores the value of the flag. -// A count flag will add 1 to its value evey time it is found on the command line +// A count flag will add 1 to its value every time it is found on the command line func Count(name string, usage string) *int { return CommandLine.CountP(name, "", usage) } diff --git a/ipnet_slice.go b/ipnet_slice.go index 6b541aa..c6e89da 100644 --- a/ipnet_slice.go +++ b/ipnet_slice.go @@ -73,7 +73,7 @@ func (s *ipNetSliceValue) String() string { func ipNetSliceConv(val string) (interface{}, error) { val = strings.Trim(val, "[]") - // Emtpy string would cause a slice with one (empty) entry + // Empty string would cause a slice with one (empty) entry if len(val) == 0 { return []net.IPNet{}, nil } |
