Fix documentation typos in GTask and GCancellable examples
[platform/upstream/glib.git] / gio / gtask.c
index 3c7341b..07a3210 100644 (file)
  *       bd->cake = cake;
  *
  *       /* Bail out now if the user has already cancelled */
- *       if (g_task_return_error_if_cancelled (g_task_get_cancellable (task)))
+ *       if (g_task_return_error_if_cancelled (task))
  *         {
  *           g_object_unref (task);
  *           return;