From 42c4e6191f0e54066ce7ead8983b5473e2256b2c Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 30 Aug 2022 04:48:08 +1200 Subject: [PATCH] Fix wrong use of fl_method_call_respond arguments in documentation (flutter/engine#35247) --- .../platform/linux/public/flutter_linux/fl_method_channel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h b/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h index f4102ed29f..e03254bf94 100644 --- a/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h +++ b/engine/src/flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h @@ -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); * } *