Fix various issues with formatting and typos (#424)

* Fix typos

* Simplify code

* Fix error usage
This commit is contained in:
Michael Grosser
2016-11-13 14:03:12 +00:00
committed by Miek Gieben
parent f402b8f726
commit ece3cf8ecf
13 changed files with 19 additions and 19 deletions

View File

@@ -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 {