Fix wrong use of fl_method_call_respond arguments in documentation (flutter/engine#35247)

This commit is contained in:
Robert Ancell
2022-08-30 04:48:08 +12:00
committed by GitHub
parent cce94461e5
commit 42c4e6191f

View File

@@ -54,7 +54,7 @@ G_DECLARE_FINAL_TYPE(FlMethodChannel,
* (fl_method_not_implemented_response_new ());
*
* g_autoptr(GError) error = NULL;
* if (!fl_method_call_respond(method_call, response))
* if (!fl_method_call_respond(method_call, response, &error))
* g_warning ("Failed to send response: %s", error->message);
* }
*