[glib/wip/mjog/log-structured-example-wrong] g_log_structured_array: Fix example call in docs
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/mjog/log-structured-example-wrong] g_log_structured_array: Fix example call in docs
- Date: Sat, 29 Jun 2019 05:13:31 +0000 (UTC)
commit 88e56c1ff1eb3b399bfa1f94dbfc589c9c7d6673
Author: Michael Gratton <mike vee net>
Date: Sat Jun 29 15:09:27 2019 +1000
g_log_structured_array: Fix example call in docs
The MESSAGE field must always be last for both g_log_structured and
g_log_structured_array, but the code example for the latter shows it
first, which is invalid.
glib/gmessages.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index 0210b7a8e..c8bc28c16 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -1632,10 +1632,10 @@ done_query:
* For example:
* |[<!-- language="C" -->
* const GLogField fields[] = {
- * { "MESSAGE", "This is a debug message.", -1 },
* { "MESSAGE_ID", "fcfb2e1e65c3494386b74878f1abf893", -1 },
* { "MY_APPLICATION_CUSTOM_FIELD", "some debug string", -1 },
* { "MY_APPLICATION_STATE", state_object, 0 },
+ * { "MESSAGE", "This is a debug message.", -1 },
* };
* g_log_structured_array (G_LOG_LEVEL_DEBUG, fields, G_N_ELEMENTS (fields));
* ]|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]