diff --git a/flags.go b/flags.go
index 8609b4fae68b7095dcd9fd85dbdc37d8d996f9b1..b43df082bc9eb29a94cad9966165a6f4e5c0f6fb 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()