aboutsummaryrefslogtreecommitdiff
path: root/request/request.go
diff options
context:
space:
mode:
authorGravatar Ye Ben <ben.ye@daocloud.io> 2019-01-29 23:21:19 +0800
committerGravatar Chris O'Haver <cohaver@infoblox.com> 2019-01-29 10:21:19 -0500
commit0eff7f37979533d079528e3618e26a16bc33136e (patch)
tree3e6ed1ee1bd7af4934ad236068a7acb8b4b62b0b /request/request.go
parenta84c26d78b45e63d13903a888b8c693d0daea9f0 (diff)
downloadcoredns-0eff7f37979533d079528e3618e26a16bc33136e.tar.gz
coredns-0eff7f37979533d079528e3618e26a16bc33136e.tar.zst
coredns-0eff7f37979533d079528e3618e26a16bc33136e.zip
some typo fix (#2512)
Signed-off-by: yeya24 <ben.ye@daocloud.io>
Diffstat (limited to 'request/request.go')
-rw-r--r--request/request.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/request/request.go b/request/request.go
index 6134fc99d..f9dddda93 100644
--- a/request/request.go
+++ b/request/request.go
@@ -299,8 +299,8 @@ func (r *Request) Scrub(reply *dns.Msg) *dns.Msg {
// pretty rare. Normally, the loop will exit when l > re, meaning that
// in the previous iteration either:
// rl < size: no need to do anything.
- // rl > size: the final size is too large, and if m > 0, the preceeding
- // iteration the size was too small. Select that preceeding size.
+ // rl > size: the final size is too large, and if m > 0, the preceding
+ // iteration the size was too small. Select that preceding size.
if rl > size && m > 0 {
reply.Extra = origExtra[:m-1]
rl = reply.Len()
@@ -334,8 +334,8 @@ func (r *Request) Scrub(reply *dns.Msg) *dns.Msg {
// pretty rare. Normally, the loop will exit when l > ra, meaning that
// in the previous iteration either:
// rl < size: no need to do anything.
- // rl > size: the final size is too large, and if m > 0, the preceeding
- // iteration the size was too small. Select that preceeding size.
+ // rl > size: the final size is too large, and if m > 0, the preceding
+ // iteration the size was too small. Select that preceding size.
if rl > size && m > 0 {
reply.Answer = origAnswer[:m-1]
// No need to recalc length, as we don't use it. We set truncated anyway. Doing