mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
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:
@@ -1632,10 +1632,10 @@ done_query:
|
|||||||
* For example:
|
* For example:
|
||||||
* |[<!-- language="C" -->
|
* |[<!-- language="C" -->
|
||||||
* const GLogField fields[] = {
|
* const GLogField fields[] = {
|
||||||
* { "MESSAGE", "This is a debug message.", -1 },
|
|
||||||
* { "MESSAGE_ID", "fcfb2e1e65c3494386b74878f1abf893", -1 },
|
* { "MESSAGE_ID", "fcfb2e1e65c3494386b74878f1abf893", -1 },
|
||||||
* { "MY_APPLICATION_CUSTOM_FIELD", "some debug string", -1 },
|
* { "MY_APPLICATION_CUSTOM_FIELD", "some debug string", -1 },
|
||||||
* { "MY_APPLICATION_STATE", state_object, 0 },
|
* { "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));
|
* g_log_structured_array (G_LOG_LEVEL_DEBUG, fields, G_N_ELEMENTS (fields));
|
||||||
* ]|
|
* ]|
|
||||||
|
Reference in New Issue
Block a user