From f0087f0dbb8c199a905185c6aa77e00c6a8065d1 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 1 Feb 2021 14:35:39 +0200 Subject: [PATCH] lib/flagutil: typo fix in comment to ArrayInt.GetOptionalArgOrDefault() func --- lib/flagutil/array.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flagutil/array.go b/lib/flagutil/array.go index 2184c015f..27ba3a540 100644 --- a/lib/flagutil/array.go +++ b/lib/flagutil/array.go @@ -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) {