Skip to content

Commit

Permalink
Update doc: #183
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Sep 30, 2024
1 parent a6edebe commit c3af82b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c3af82b

Please sign in to comment.