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 <winningpiece@gmail.com>
This commit is contained in:
Alexander Frolov 2024-10-17 13:29:51 +02:00 committed by GitHub
parent ab0d31a7b0
commit f0d1db81dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ import (
// //
// DefaultValue is in months. // DefaultValue is in months.
func NewDuration(name string, defaultValue string, description string) *Duration { 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" "If suffix isn't set, then the duration is counted in months"
d := &Duration{} d := &Duration{}
if err := d.Set(defaultValue); err != nil { if err := d.Set(defaultValue); err != nil {