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.
This commit is contained in:
Michael Gratton 2019-06-29 15:09:27 +10:00
parent ce961e2722
commit 88e56c1ff1

View File

@ -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));
* ]|