From f0d1db81dcce8124f1e5f87d5327532d1631739d Mon Sep 17 00:00:00 2001 From: Alexander Frolov <9749087+fxrlv@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:29:51 +0200 Subject: [PATCH] lib/flagutil: rm misleading `minutes` support from `flagutil.Duration` docs (#7066) ### Describe Your Changes `flagutil.Duration` docs state that `m` suffix stands for `minute`, but in fact this suffix is not supported due to ambiguity with `month` ### Checklist The following checks are **mandatory**: - [x] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/). Signed-off-by: Alexander Frolov --- lib/flagutil/duration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flagutil/duration.go b/lib/flagutil/duration.go index dd80d2cbc..61b5f414f 100644 --- a/lib/flagutil/duration.go +++ b/lib/flagutil/duration.go @@ -14,7 +14,7 @@ import ( // // DefaultValue is in months. func NewDuration(name string, defaultValue string, description string) *Duration { - description += "\nThe following optional suffixes are supported: s (second), m (minute), h (hour), d (day), w (week), y (year). " + + description += "\nThe following optional suffixes are supported: s (second), h (hour), d (day), w (week), y (year). " + "If suffix isn't set, then the duration is counted in months" d := &Duration{} if err := d.Set(defaultValue); err != nil {