simply: fix Go doc. (#1424)

This commit is contained in:
Ludovic Fernandez 2021-06-08 10:59:55 +02:00 committed by GitHub
parent e79975cf14
commit f5da11cd29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,8 +58,8 @@ type DNSProvider struct {
recordIDsMu sync.Mutex
}
// NewDNSProvider returns a DNSProvider instance configured for Njalla.
// Credentials must be passed in the environment variable: NJALLA_TOKEN.
// NewDNSProvider returns a DNSProvider instance configured for Simply.com.
// Credentials must be passed in the environment variable: SIMPLY_ACCOUNT_NAME, SIMPLY_API_KEY.
func NewDNSProvider() (*DNSProvider, error) {
values, err := env.Get(EnvAccountName, EnvAPIKey)
if err != nil {
@ -73,7 +73,7 @@ func NewDNSProvider() (*DNSProvider, error) {
return NewDNSProviderConfig(config)
}
// NewDNSProviderConfig return a DNSProvider instance configured for Njalla.
// NewDNSProviderConfig return a DNSProvider instance configured for Simply.com.
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
if config == nil {
return nil, errors.New("simply: the configuration of the DNS provider is nil")