docs: Fix return value for g_datetime_compare()

Previous code confused dt1 and dt2. The new formulation is stolen from
man strcmp() and g_strcmp0().
This commit is contained in:
Benjamin Otte 2011-02-12 17:56:34 +01:00
parent dfeb02ee86
commit 17eea8fa60

View File

@ -1319,8 +1319,8 @@ g_date_time_add_full (GDateTime *datetime,
* #GCompareFunc-compatible comparison for #GDateTime<!-- -->'s. Both
* #GDateTime<-- -->'s must be non-%NULL.
*
* Return value: 0 for equal, less than zero if dt1 is less than dt2, greater
* than zero if dt2 is greator than dt1.
* Returnsvalue: -1, 0 or 1 if @dt1 is less than, equal to or greater
* than @dt2.
*
* Since: 2.26
*/