aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar moredhel <1742172+moredhel@users.noreply.github.com> 2018-11-05 14:59:24 +0100
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2018-11-05 05:59:24 -0800
commitb7bbfef6ef3d057436df0dde25ceb3f31ee9309d (patch)
tree511b8cc97c25fc345ca57a89a4fc536592916baa
parent756749c5cad4cd40453b82f70592bc19bb9ccb15 (diff)
downloadcoredns-b7bbfef6ef3d057436df0dde25ceb3f31ee9309d.tar.gz
coredns-b7bbfef6ef3d057436df0dde25ceb3f31ee9309d.tar.zst
coredns-b7bbfef6ef3d057436df0dde25ceb3f31ee9309d.zip
fix typo (#2272)
-rw-r--r--plugin/plugin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/plugin.go b/plugin/plugin.go
index 65bf939f1..3ff518ab8 100644
--- a/plugin/plugin.go
+++ b/plugin/plugin.go
@@ -68,7 +68,7 @@ func (f HandlerFunc) Name() string { return "handlerfunc" }
// Error returns err with 'plugin/name: ' prefixed to it.
func Error(name string, err error) error { return fmt.Errorf("%s/%s: %s", "plugin", name, err) }
-// NextOrFailure calls next.ServeDNS when next is not nill, otherwise it will return, a ServerFailure and a nil error.
+// NextOrFailure calls next.ServeDNS when next is not nil, otherwise it will return, a ServerFailure and a nil error.
func NextOrFailure(name string, next Handler, ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) { // nolint: golint
if next != nil {
if span := ot.SpanFromContext(ctx); span != nil {