Skip to content

Commit 81e9303

Browse files
Marti BolivarAnas Nashif
authored andcommitted
lib: json: fix JSON_OBJ_DESCR_ARRAY Doxygen example
This is missing two required arguments. Signed-off-by: Marti Bolivar <[email protected]>
1 parent 271e115 commit 81e9303

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/json/json.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ typedef int (*json_append_bytes_t)(const u8_t *bytes, size_t len,
154154
* };
155155
*
156156
* struct json_obj_descr array[] = {
157-
* JSON_OBJ_DESCR_ARRAY(struct example, foo, JSON_TOK_NUMBER)
157+
* JSON_OBJ_DESCR_ARRAY(struct example, foo, 10, foo_len,
158+
* JSON_TOK_NUMBER)
158159
* };
159160
*/
160161
#define JSON_OBJ_DESCR_ARRAY(struct_, field_name_, max_len_, \

0 commit comments

Comments
 (0)