diff options
author | 2018-01-15 18:27:47 -0800 | |
---|---|---|
committer | 2018-01-15 18:27:47 -0800 | |
commit | fe0767987e0887cd0121b800241d3d710273ff3d (patch) | |
tree | 648595cbd0db39ff1e50765de387c8204dcfe07e /plugin/template | |
parent | 9d87b953a0c6b83e214c4152a9c38082ea83246d (diff) | |
download | coredns-fe0767987e0887cd0121b800241d3d710273ff3d.tar.gz coredns-fe0767987e0887cd0121b800241d3d710273ff3d.tar.zst coredns-fe0767987e0887cd0121b800241d3d710273ff3d.zip |
Fix several typos (#1395)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'plugin/template')
-rw-r--r-- | plugin/template/README.md | 2 | ||||
-rw-r--r-- | plugin/template/template_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugin/template/README.md b/plugin/template/README.md index 5fbd6a587..34a429cbb 100644 --- a/plugin/template/README.md +++ b/plugin/template/README.md @@ -50,7 +50,7 @@ Each resource record is a full-featured [Go template](https://golang.org/pkg/tex * `.Message` the complete incoming DNS message. * `.Question` the matched question section. -The output of the template must be a [RFC 1035](https://tools.ietf.org/html/rfc1035) style resource record (commonly refered to as a "zone file"). +The output of the template must be a [RFC 1035](https://tools.ietf.org/html/rfc1035) style resource record (commonly referred to as a "zone file"). **WARNING** there is a syntactical problem with Go templates and CoreDNS config files. Expressions like `{{$var}}` will be interpreted as a reference to an environment variable by CoreDNS (and diff --git a/plugin/template/template_test.go b/plugin/template/template_test.go index 2eefd81b8..288d833ec 100644 --- a/plugin/template/template_test.go +++ b/plugin/template/template_test.go @@ -294,7 +294,7 @@ func TestHandler(t *testing.T) { } } -// TestMultiSection verfies that a corefile with mutliple but different template sections works +// TestMultiSection verfies that a corefile with multiple but different template sections works func TestMultiSection(t *testing.T) { ctx := context.TODO() @@ -306,7 +306,7 @@ func TestMultiSection(t *testing.T) { template IN A { rcode REFUSED } - # Fallthrough everyting IN TXT for test. + # Fallthrough everything IN TXT for test. template IN TXT { match "$^" rcode SERVFAIL |