--- a/src/cx/array_list.h Tue Sep 17 23:29:12 2024 +0200 +++ b/src/cx/array_list.h Tue Sep 17 23:32:27 2024 +0200 @@ -313,7 +313,7 @@ * @param elem_size the size of one element * @param elem the element to find * @param cmp_func the compare function - * @return the index of the largest upper bound, or \p size + * @return the index of the largest lower bound, or \p size */ size_t cx_array_binary_search_inf( void const *arr, @@ -373,7 +373,7 @@ * @param elem_size the size of one element * @param elem the element to find * @param cmp_func the compare function - * @return the index of the largest upper bound, or \p size + * @return the index of the smallest upper bound, or \p size */ __attribute__((__nonnull__)) static inline size_t cx_array_binary_search_sup(