Fix documentation

This commit is contained in:
Adnan Maolood 2020-10-28 16:04:14 -04:00
parent b5fbd197a1
commit 5e4a38dccb

2
doc.go
View File

@ -43,7 +43,7 @@ Clients can control when to trust certificates with TrustCertificate:
Clients can create client certificates upon the request of a server:
client.CreateCertificate = func(hostname, path string) *tls.Certificate {
client.CreateCertificate = func(hostname, path string) (tls.Certificate, error) {
return gemini.CreateCertificate(gemini.CertificateOptions{
Duration: time.Hour,
})