Skip to content

Commit

Permalink
Minor documentation fix, DescendGreaterThan starts with the last item…
Browse files Browse the repository at this point in the history
… in the tree and decends to the least item greater than the pivot
  • Loading branch information
AdamColton authored and gconnell committed Oct 16, 2019
1 parent be84af9 commit 479b5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btree.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ func (t *BTree) DescendLessOrEqual(pivot Item, iterator ItemIterator) {
}

// DescendGreaterThan calls the iterator for every value in the tree within
// the range (pivot, last], until iterator returns false.
// the range [last, pivot), until iterator returns false.
func (t *BTree) DescendGreaterThan(pivot Item, iterator ItemIterator) {
if t.root == nil {
return
Expand Down

0 comments on commit 479b5e8

Please sign in to comment.