From 971131d951c21e85934fc61f42c87f3ee87c9e98 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Sat, 1 Apr 2023 10:52:20 +0800 Subject: [PATCH] chore: add comment --- component/trie/sskv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/component/trie/sskv.go b/component/trie/sskv.go index 61e92ce7..268f6c18 100644 --- a/component/trie/sskv.go +++ b/component/trie/sskv.go @@ -34,6 +34,7 @@ func NewDomainSet(keys []string) *DomainSet { reserveDomains = append(reserveDomains, utils.Reverse(domain)) }) // ensure that the same prefix is continuous + // and according to the ascending sequence of length sort.Strings(reserveDomains) keys = reserveDomains if len(keys) == 0 {