salt: fix DidGenerate docstring (#7372)

This commit is contained in:
Calvin Leung Huang
2019-08-27 14:41:23 -07:00
committed by GitHub
parent ab557dd48f
commit f1088406f2

View File

@@ -135,8 +135,8 @@ func (s *Salt) GetIdentifiedHMAC(data string) string {
return s.config.HMACType + ":" + s.GetHMAC(data)
}
// DidGenerate returns if the underlying salt value was generated
// on initialization or if an existing salt value was loaded
// DidGenerate returns true if the underlying salt value was generated
// on initialization.
func (s *Salt) DidGenerate() bool {
return s.generated
}