ref: 71edda030d34edc2a34c31cae36970d937b21e2a
parent: 0d29e60b6ba1f71949b1ddf97cc7fdeef2323706
author: spew <devnull@localhost>
date: Mon Apr 24 06:50:03 EDT 2017
libavl: fix documentation
--- a/sys/man/2/avl
+++ b/sys/man/2/avl
@@ -57,10 +57,13 @@
.I Avllookup
searches for a given key and returns
the closest node less than the given key,
-.BR nil ,
+equal to,
or the closest node greater than the key depending on whether
.I dir
-is less than, equal to, or greater than zero, respectively.
+is less than, equal to, or greater than zero, respectively. If
+.I dir
+is zero and there is no matching key, it returns
+.BR nil .
.I Avldelete
removes the node matching the key from the tree and returns
it. It returns nil if no matching key is found.
--
⑨