chore: fix some comments (#7201)

Signed-off-by: momantech <cuimoman@qq.com>
This commit is contained in:
momantech
2025-03-24 22:32:39 +08:00
committed by GitHub
parent 7c76d534d3
commit 1bb184aa09
3 changed files with 3 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ func emitAddressRecord(c chan<- []dns.RR, s msg.Service) string {
return "" 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 // calculating the srv weight and priority
func calcSRVWeight(numservices int) uint16 { func calcSRVWeight(numservices int) uint16 {
var services []msg.Service var services []msg.Service

View File

@@ -36,7 +36,7 @@ func TestStartup(t *testing.T) {
} }
if m.tagSet != tagByProvider["default"] { 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 { if m.Tracer() == nil {

View File

@@ -166,7 +166,7 @@ func sectionsFromReadme(readme string) error {
} }
} }
if section != 4 { 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 return nil
} }