mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
Fix various issues with formatting and typos (#424)
* Fix typos * Simplify code * Fix error usage
This commit is contained in:
committed by
Miek Gieben
parent
f402b8f726
commit
ece3cf8ecf
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// ToString convert the rcode to the offical DNS string, or to "RCODE"+value if the RCODE
|
||||
// ToString convert the rcode to the official DNS string, or to "RCODE"+value if the RCODE
|
||||
// value is unknown.
|
||||
func ToString(rcode int) string {
|
||||
if str, ok := dns.RcodeToString[rcode]; ok {
|
||||
|
||||
Reference in New Issue
Block a user