[glib] GTask: fix example code in docs



commit 7ab79b3879fa8b336ba3047f2399f26e1601f68e
Author: Ben Iofel <iofelben gmail com>
Date:   Mon Nov 16 10:05:16 2015 -0500

    GTask: fix example code in docs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758181

 gio/gtask.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gtask.c b/gio/gtask.c
index 4219be0..0318d97 100644
--- a/gio/gtask.c
+++ b/gio/gtask.c
@@ -194,7 +194,7 @@
  *
  *       // baking_data_free() will drop its ref on the cake, so we have to
  *       // take another here to give to the caller.
- *       g_task_return_pointer (result, g_object_ref (cake), g_object_unref);
+ *       g_task_return_pointer (task, g_object_ref (cake), g_object_unref);
  *       g_object_unref (task);
  *     }
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]