From c3af82ba8d72125469d956fe8c9f0de5b3b8f5e7 Mon Sep 17 00:00:00 2001 From: ibireme Date: Mon, 30 Sep 2024 19:52:05 +0800 Subject: [PATCH] Update doc: #183 --- doc/API.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/API.md b/doc/API.md index 4316198..ebbf262 100644 --- a/doc/API.md +++ b/doc/API.md @@ -908,6 +908,7 @@ yyjson_mut_val *name3 = yyjson_mut_str(doc, "Hermione"); yyjson_mut_arr_append(names, name1); yyjson_mut_arr_append(names, name2); yyjson_mut_arr_append(names, name3); +yyjson_mut_obj_add(root, yyjson_mut_str(doc, "names"), names); // ❌ Wrong! the value is already added to another container. yyjson_mut_obj_add(root, key, name1);