mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-04 16:36:17 +01:00
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:
parent
dfeb02ee86
commit
17eea8fa60
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user