summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-07-04 13:30:10 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-07-04 13:32:14 -0400
commit4a6e24764b4248a1a97a338138fa71c2c8c4d1d0 (patch)
tree376776493f6dddcebe6d3078931be3bbe0b49fde /src
parent1864ca8d8e9e93beb3593b316e447c6d817ddfd9 (diff)
downloadbfs-4a6e24764b4248a1a97a338138fa71c2c8c4d1d0.tar.xz
list: Fix some parameter docs
Diffstat (limited to 'src')
-rw-r--r--src/list.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/list.h b/src/list.h
index a284c25..3b53fab 100644
--- a/src/list.h
+++ b/src/list.h
@@ -109,7 +109,7 @@
* Insert an item into a singly-linked list.
*
* @param list
- * The list to remove from.
+ * The list to modify.
* @param cursor
* A pointer to the item to insert after, e.g. &list->head or list->tail.
* @param item
@@ -246,7 +246,7 @@
* Remove an item from a singly-linked list.
*
* @param list
- * The list to remove from.
+ * The list to modify.
* @param cursor
* A pointer to the item to remove, either &list->head or &prev->next.
* @param node (optional)
@@ -277,7 +277,7 @@ static inline void *slist_remove_impl(void *ret, void *cursor, void *next, void
* Pop the head off a singly-linked list.
*
* @param list
- * The list to pop from.
+ * The list to modify.
* @param node (optional)
* If specified, use head->node.next rather than head->next.
* @return
@@ -334,7 +334,7 @@ static inline void *slist_remove_impl(void *ret, void *cursor, void *next, void
* Insert into a doubly-linked list after the given cursor.
*
* @param list
- * The list to initialize.
+ * The list to modify.
* @param cursor
* Insert after this element.
* @param item