[glib/glib-2-28] docs: Fix return value for g_datetime_compare()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-28] docs: Fix return value for g_datetime_compare()
- Date: Fri, 18 Feb 2011 04:34:52 +0000 (UTC)
commit 936c7a895b07a4d788e8be2ed01b940f1020ca51
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 12 17:56:34 2011 +0100
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().
(cherry picked from commit 17eea8fa60915c5711a99eebe5025eadb04c3f3f)
glib/gdatetime.c | 4 ++--
1 files 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
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]