docs/Writerside/topics/list.h.md

changeset 1244
9a8e781258ac
parent 1243
13e15cd529ae
--- a/docs/Writerside/topics/list.h.md	Tue Mar 11 12:05:01 2025 +0100
+++ b/docs/Writerside/topics/list.h.md	Wed Mar 12 16:08:35 2025 +0100
@@ -326,7 +326,7 @@
 ```C
 // define the class with pointers to your functions
 static cx_list_class my_list_class = {
-        my_list_destructor,
+        my_list_deallocate,
         my_list_insert_element,
         my_list_insert_array,
         my_list_insert_sorted,
@@ -373,7 +373,7 @@
 | Function         | Description                                                                                                                                                                                                                                                                                                                |
 |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
 | `clear`          | Invoke destructor functions on all elements and remove them from the list.                                                                                                                                                                                                                                                 |
-| `destructor`     | Invoke destructor functions on all elements and deallocate the entire list memory.                                                                                                                                                                                                                                         |
+| `deallocate`     | Invoke destructor functions on all elements and deallocate the entire list memory.                                                                                                                                                                                                                                         |
 | `insert_element` | Insert a single element at the specified index. Return zero on success and non-zero on failure.                                                                                                                                                                                                                            |
 | `insert_array`   | Insert an array of elements starting at the specified index. Return the number of elements inserted.                                                                                                                                                                                                                       |
 | `insert_sorted`  | Insert an array of sorted elements into a sorted list. Return the number of elements inserted.                                                                                                                                                                                                                             |

mercurial