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 fdf9de98f8
commit e79799a784

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) {