1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-29 23:07:45 +02:00

chore: fix function names in comment (#5262)

Signed-off-by: dockercui <dockercui@aliyun.com>
This commit is contained in:
dockercui
2024-04-26 16:11:23 +08:00
committed by GitHub
parent f56f52472f
commit 24d36d6931
2 changed files with 2 additions and 2 deletions

View File

@@ -435,7 +435,7 @@ func loadCertPool(path string) (*x509.CertPool, error) {
return cp, nil
}
// loadCertPool loads and returns the tls.Certificate found at path if it
// loadCertificates loads and returns the tls.Certificate found at path if it
// exists and is valid. Otherwise, nil and an error is returned.
func loadCertificates(certPath, keyPath string) ([]tls.Certificate, error) {
cert, err := readFile(certPath)

View File

@@ -166,7 +166,7 @@ type ReaderOption interface {
ManualReaderOption
}
// WithProducers registers producers as an external Producer of metric data
// WithProducer registers producers as an external Producer of metric data
// for this Reader.
func WithProducer(p Producer) ReaderOption {
return producerOption{p: p}