mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
chore: fix some comments (#7201)
Signed-off-by: momantech <cuimoman@qq.com>
This commit is contained in:
@@ -164,7 +164,7 @@ func emitAddressRecord(c chan<- []dns.RR, s msg.Service) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// calcSrvWeight borrows the logic implemented in plugin.SRV for dynamically
|
||||
// calcSRVWeight borrows the logic implemented in plugin.SRV for dynamically
|
||||
// calculating the srv weight and priority
|
||||
func calcSRVWeight(numservices int) uint16 {
|
||||
var services []msg.Service
|
||||
|
||||
@@ -36,7 +36,7 @@ func TestStartup(t *testing.T) {
|
||||
}
|
||||
|
||||
if m.tagSet != tagByProvider["default"] {
|
||||
t.Errorf("TagSet by proviser hasn't been corectly initialized")
|
||||
t.Errorf("TagSet by proviser hasn't been correctly initialized")
|
||||
}
|
||||
|
||||
if m.Tracer() == nil {
|
||||
|
||||
@@ -166,7 +166,7 @@ func sectionsFromReadme(readme string) error {
|
||||
}
|
||||
}
|
||||
if section != 4 {
|
||||
return fmt.Errorf("Sections incomplete or ordered wrong: %q, want (at least): Name, Descripion, Syntax and Examples", readme)
|
||||
return fmt.Errorf("Sections incomplete or ordered wrong: %q, want (at least): Name, Description, Syntax and Examples", readme)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user