From fb63546029962a9a22793ca4cbf7f1910df564a1 Mon Sep 17 00:00:00 2001 From: Agustin Ranieri Date: Mon, 19 Aug 2024 12:01:44 -0300 Subject: [PATCH] Docs: Fix list_add_in_index() example --- src/commons/collections/list.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commons/collections/list.h b/src/commons/collections/list.h index 3743d61..95c3051 100755 --- a/src/commons/collections/list.h +++ b/src/commons/collections/list.h @@ -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 *