array: Fix handling of user_data in doc-comment

The user_data for g_ptr_array_sort_with_data is passed directly, not
with an extra layer of pointer like the data pointers.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Fixes: 52c130f8
This commit is contained in:
Simon McVittie 2019-10-24 11:40:00 +01:00
parent ef6fe191ac
commit ee13eb518d

View File

@ -1955,11 +1955,11 @@ g_ptr_array_sort (GPtrArray *array,
* sort_filelist (gconstpointer a, gconstpointer b, gpointer user_data)
* {
* gint order;
* const SortMode *sort_mode = GPOINTER_TO_INT (user_data);
* const SortMode sort_mode = GPOINTER_TO_INT (user_data);
* const FileListEntry *entry1 = *((FileListEntry **) a);
* const FileListEntry *entry2 = *((FileListEntry **) b);
*
* switch (*sort_mode)
* switch (sort_mode)
* {
* case SORT_NAME:
* order = g_ascii_strcasecmp (entry1->name, entry2->name);