garray: Fix typo in doc comment of g_ptr_array_sort[_with_data]()

Although g_ptr_array_sort_with_data() could achieve the goal, the
wrapper functions should be expected there because that's the reason
why they are added.
This commit is contained in:
Alynx Zhou 2023-07-11 22:42:33 +08:00
parent 4aa63defdf
commit 57b0e72c7b

View File

@ -2467,7 +2467,7 @@ g_ptr_array_insert (GPtrArray *array,
* take the pointers from the array as arguments, it takes pointers to * take the pointers from the array as arguments, it takes pointers to
* the pointers in the array. * the pointers in the array.
* *
* Use g_ptr_array_sort_with_data() if you want to use normal * Use g_ptr_array_sort_values() if you want to use normal
* #GCompareFuncs, otherwise here is a full example of use: * #GCompareFuncs, otherwise here is a full example of use:
* *
* |[<!-- language="C" --> * |[<!-- language="C" -->
@ -2527,7 +2527,7 @@ g_ptr_array_sort (GPtrArray *array,
* doesn't take the pointers from the array as arguments, it takes * doesn't take the pointers from the array as arguments, it takes
* pointers to the pointers in the array. * pointers to the pointers in the array.
* *
* Use g_ptr_array_sort_with_data() if you want to use normal * Use g_ptr_array_sort_values_with_data() if you want to use normal
* #GCompareDataFuncs, otherwise here is a full example of use: * #GCompareDataFuncs, otherwise here is a full example of use:
* *
* |[<!-- language="C" --> * |[<!-- language="C" -->