mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01: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:
parent
ce961e2722
commit
88e56c1ff1
@ -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));
|
||||
* ]|
|
||||
|
Loading…
x
Reference in New Issue
Block a user