Skip to content

Commit

Permalink
Docs: Fix list_add_in_index() example
Browse files Browse the repository at this point in the history
  • Loading branch information
RaniAgus authored Aug 19, 2024
1 parent 49176ce commit fb63546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commons/collections/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@
* Ejemplo de uso:
* @code
* t_list* people = list_create();
* list_add(people, 0, person_create("Lionel Messi", 33)); // 0x1234
* list_add(people, 1, person_create("Cristiano Ronaldo", 35)); // 0x5678
* list_add(people, 1, person_create("Neymar Jr.", 29)); // 0x9abc
* list_add(people, person_create("Lionel Messi", 33)); // 0x1234
* list_add(people, person_create("Cristiano Ronaldo", 35)); // 0x5678
* list_add(people, person_create("Neymar Jr.", 29)); // 0x9abc
*
* list_add_in_index(people, 1, person_create("Kylian Mbappé", 22)); // 0xdef0
*
Expand Down

0 comments on commit fb63546

Please sign in to comment.