From b67ecb3e550a5aa87243bda26085011c0b63999c Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Tue, 29 Mar 2016 20:47:45 +0100 Subject: More nameerror stuff --- middleware/file/tree/tree.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'middleware/file/tree/tree.go') 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 } -- cgit v1.2.3