From a9baecc23d819505920d8939d8f3cf966b327f98 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Wed, 5 Oct 2022 08:20:03 +0200 Subject: [PATCH] doc: change comment --- flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flags.go b/flags.go index 8609b4f..b43df08 100644 --- a/flags.go +++ b/flags.go @@ -6,7 +6,7 @@ import ( "strconv" ) -// AddFileFromFlags adds a file to the configuration +// AddFileFromFlagSet adds a file to the configuration // The file is read from the flag specified by the name func (s *setting[C]) AddFileFromFlagSet(flagset *flag.FlagSet, name string, format Format) *setting[C] { @@ -25,7 +25,7 @@ func (s *setting[C]) AddFileFromFlagSet(flagset *flag.FlagSet, name string, form return s.AddFile(path, format) } -// InitFromFlags initializes the configuration from the command line flags. +// InitFromFlagSet initializes the configuration from the command line flags. func (s *setting[C]) InitFromFlagSet(flagset *flag.FlagSet) *setting[C] { s.Lock() defer s.Unlock() -- GitLab