lib/flagutil: typo fix in comment to ArrayInt.GetOptionalArgOrDefault() func

This commit is contained in:
Aliaksandr Valialkin 2021-02-01 14:35:39 +02:00
parent a4ae945a79
commit f0087f0dbb

View file

@ -259,7 +259,7 @@ func (a *ArrayInt) Set(value string) error {
return nil
}
// GetOptionalArg returns optional arg under the given argIdx.
// GetOptionalArgOrDefault returns optional arg under the given argIdx.
func (a *ArrayInt) GetOptionalArgOrDefault(argIdx int, defaultValue int) int {
x := *a
if argIdx < len(x) {