diff options
Diffstat (limited to 'middleware/file/tree/tree.go')
-rw-r--r-- | middleware/file/tree/tree.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/middleware/file/tree/tree.go b/middleware/file/tree/tree.go index 7f51b89f0..342bcefa8 100644 --- a/middleware/file/tree/tree.go +++ b/middleware/file/tree/tree.go @@ -492,8 +492,8 @@ func (n *Node) max() *Node { return n } -// Floor returns the greatest value equal to or less than the rr according to Less(). -func (t *Tree) Floor(rr dns.RR) *Elem { +// Prev returns the greatest value equal to or less than the rr according to Less(). +func (t *Tree) Prev(rr dns.RR) *Elem { if t.Root == nil { return nil } @@ -521,8 +521,8 @@ func (n *Node) floor(rr dns.RR) *Node { return n } -// Ceil returns the smallest value equal to or greater than the rr according to Less(). -func (t *Tree) Ceil(rr dns.RR) *Elem { +// Next returns the smallest value equal to or greater than the rr according to Less(). +func (t *Tree) Next(rr dns.RR) *Elem { if t.Root == nil { return nil } |