aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/rcode/rcode.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-02-23 15:02:05 +0000
committerGravatar GitHub <noreply@github.com> 2018-02-23 15:02:05 +0000
commit455040c1439324d6c53841c9b877e4e7c76df31e (patch)
tree096de5eb354b1f3e7d19a063e2303cdc3025e822 /plugin/pkg/rcode/rcode.go
parente3b7beab6abd4c725b386ee5a89b344b5d4d413b (diff)
downloadcoredns-455040c1439324d6c53841c9b877e4e7c76df31e.tar.gz
coredns-455040c1439324d6c53841c9b877e4e7c76df31e.tar.zst
coredns-455040c1439324d6c53841c9b877e4e7c76df31e.zip
doc: some function/vars/const/package level updates (#1558)
* doc: some function/vars/const/package level updates Various update that stood out while reading godoc.org for CoreDNS. * Fix some misspellings as well
Diffstat (limited to 'plugin/pkg/rcode/rcode.go')
-rw-r--r--plugin/pkg/rcode/rcode.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/pkg/rcode/rcode.go b/plugin/pkg/rcode/rcode.go
index 32863f0b2..d221bcbd2 100644
--- a/plugin/pkg/rcode/rcode.go
+++ b/plugin/pkg/rcode/rcode.go
@@ -6,8 +6,7 @@ import (
"github.com/miekg/dns"
)
-// ToString convert the rcode to the official DNS string, or to "RCODE"+value if the RCODE
-// value is unknown.
+// 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 {
return str