Skip to content

Commit

Permalink
subr_pctrie: fix a comment
Browse files Browse the repository at this point in the history
A comment used least > instead of greatest <.  Fix it.
  • Loading branch information
Doug Moore authored and Doug Moore committed Oct 21, 2024
1 parent 096c39f commit d2d0d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/kern/subr_pctrie.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ pctrie_iter_lookup_le(struct pctrie_iter *it, uint64_t index)

/*
* If no such node was found, and instead this path leads only to nodes
* > index, back up to find a subtrie with the least value > index.
* > index, back up to find a subtrie with the greatest value < index.
*/
if (pctrie_isleaf(node) ?
(m = pctrie_toval(node)) == NULL || *m > index :
Expand Down

0 comments on commit d2d0d6c

Please sign in to comment.