Skip to content

Commit

Permalink
Docs: Guide: Reorder config designated initialiser for C++ compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
tlsa committed Sep 17, 2021
1 parent 790ec57 commit 187117d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ passing the `top_mapping_schema` that we defined above.
```c
/* Create our CYAML configuration. */
static const cyaml_config_t config = {
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
.log_fn = cyaml_log, /* Use the default logging function. */
.mem_fn = cyaml_mem, /* Use the default memory allocator. */
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
};

/* Where to store the loaded data */
Expand Down

0 comments on commit 187117d

Please sign in to comment.