Skip to content

Commit 504f9ac

Browse files
authored
sc_list: doc fix (#105)
1 parent 86a1574 commit 504f9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linked-list/sc_list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void sc_list_del(struct sc_list *l, struct sc_list *elem);
175175
* struct sc_list *tmp; // Variable for loop, user should not use this.
176176
* struct sc_list *it; // Iterator
177177
*
178-
* sc_list_foreach_safe (list, it) {
178+
* sc_list_foreach_safe (list, tmp, it) {
179179
* container = sc_list_entry(it, struct container, others);
180180
* sc_list_del(list, &container->others);
181181
* }

0 commit comments

Comments
 (0)