From 17eea8fa60915c5711a99eebe5025eadb04c3f3f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 12 Feb 2011 17:56:34 +0100 Subject: [PATCH] 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(). --- glib/gdatetime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.7.4