From 3f12671f4e1bf319f03d11ff42d3d0025dd62bfa Mon Sep 17 00:00:00 2001 From: Ismael Fillonneau Date: Fri, 8 Nov 2019 10:29:33 +0100 Subject: [PATCH] doc: json: improve example documentation The example will be well displayed in the documentation Signed-off-by: Ismael Fillonneau --- include/data/json.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/data/json.h b/include/data/json.h index 07269e78efd..7ba4fdd5afd 100644 --- a/include/data/json.h +++ b/include/data/json.h @@ -146,6 +146,7 @@ typedef int (*json_append_bytes_t)(const char *bytes, size_t len, * @param sub_descr_ Array of json_obj_descr describing the subobject * * Here's an example of use: + * * struct nested { * int foo; * struct { @@ -189,6 +190,7 @@ typedef int (*json_append_bytes_t)(const char *bytes, size_t len, * @param elem_type_ Element type, must be a primitive type * * Here's an example of use: + * * struct example { * int foo[10]; * size_t foo_len;