Fix some typos in comments. (#4100)

Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
This commit is contained in:
Hu Shuai
2020-09-01 15:10:45 +08:00
committed by GitHub
parent 9e4a177d9f
commit e233f59ee8
24 changed files with 42 additions and 42 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/miekg/dns"
)
// hash serializes the RRset and return a signature cache key.
// hash serializes the RRset and returns a signature cache key.
func hash(rrs []dns.RR) uint64 {
h := fnv.New64()
buf := make([]byte, 256)

View File

@@ -9,7 +9,7 @@ import (
"github.com/miekg/dns"
)
// ResponseWriter sign the response on the fly.
// ResponseWriter signs the response on the fly.
type ResponseWriter struct {
dns.ResponseWriter
d Dnssec

View File

@@ -2,7 +2,7 @@ package dnssec
import "github.com/miekg/dns"
// newRRSIG return a new RRSIG, with all fields filled out, except the signed data.
// newRRSIG returns a new RRSIG, with all fields filled out, except the signed data.
func (k *DNSKEY) newRRSIG(signerName string, ttl, incep, expir uint32) *dns.RRSIG {
sig := new(dns.RRSIG)