mirror of
https://github.com/coredns/coredns.git
synced 2025-12-17 15:55:09 -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
@@ -1,4 +1,4 @@
|
||||
// Package edns provides function usefull for adding/inspecting OPT records to/in messages.
|
||||
// Package edns provides function useful for adding/inspecting OPT records to/in messages.
|
||||
package edns
|
||||
|
||||
import (
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -24,7 +24,7 @@ type dir http.Dir
|
||||
// Dexample.org/...
|
||||
// Db.example.org/...
|
||||
//
|
||||
// CoreDir will default to "$HOME/.coredns" on Unix, but it's location can be overriden with the COREDNSPATH
|
||||
// CoreDir will default to "$HOME/.coredns" on Unix, but it's location can be overridden with the COREDNSPATH
|
||||
// environment variable.
|
||||
var CoreDir = dir(fsPath())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user