aboutsummaryrefslogtreecommitdiff
path: root/middleware/canonical.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/canonical.go')
-rw-r--r--middleware/canonical.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/canonical.go b/middleware/canonical.go
index b8953f655..9dacba78c 100644
--- a/middleware/canonical.go
+++ b/middleware/canonical.go
@@ -8,10 +8,10 @@ import (
// Less returns <0 when a is less than b, 0 when they are equal and
// >0 when a is larger than b.
-// The function order names in DNSSEC canonical order.
+// The function orders names in DNSSEC canonical order: RFC 4034s section-6.1
//
// See http://bert-hubert.blogspot.co.uk/2015/10/how-to-do-fast-canonical-ordering-of.html
-// for a blog article on how we do this. And https://tools.ietf.org/html/rfc4034#section-6.1 .
+// for a blog article on this implementation:
func Less(a, b string) int {
i := 1
aj := len(a)