From: Benjamin Otte Date: Sat, 12 Feb 2011 16:56:34 +0000 (+0100) Subject: docs: Fix return value for g_datetime_compare() X-Git-Tag: 2.29.2~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17eea8fa60915c5711a99eebe5025eadb04c3f3f;p=platform%2Fupstream%2Fglib.git 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(). --- diff --git a/glib/gdatetime.c b/glib/gdatetime.c index 0c47006..2957817 100644 --- a/glib/gdatetime.c +++ b/glib/gdatetime.c @@ -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 */