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

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

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 {

View File

@@ -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())