diff options
-rw-r--r-- | src/core/wee-arraylist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-arraylist.c b/src/core/wee-arraylist.c index d2cba4b15..fbbbbef7d 100644 --- a/src/core/wee-arraylist.c +++ b/src/core/wee-arraylist.c @@ -416,6 +416,9 @@ arraylist_search (struct t_arraylist *arraylist, void *pointer, * If the index is negative and that the arraylist is not sorted, the element * is added at the end of arraylist. * + * If the arraylist is sorted, the argument "index" is ignored (the element + * will be inserted at appropriate position, to keep arraylist sorted). + * * Returns the index of the new element (>= 0) or -1 if error. */ |