aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/linked_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/utils/linked_list.h')
-rw-r--r--src/libstrongswan/utils/linked_list.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstrongswan/utils/linked_list.h b/src/libstrongswan/utils/linked_list.h
index 47c003d32..cb3d53e58 100644
--- a/src/libstrongswan/utils/linked_list.h
+++ b/src/libstrongswan/utils/linked_list.h
@@ -95,9 +95,10 @@ struct linked_list_t {
/**
* Inserts a new item before the item the enumerator currently points to.
*
- * If the enumerator's position is invalid, e.g. at the end of the list,
- * the item is inserted last. This is helpful when inserting items into a
- * sorted list.
+ * If this method is called before starting the enumeration the item is
+ * inserted first. If it is called after all items have been enumerated
+ * the item is inserted last. This is helpful when inserting items into
+ * a sorted list.
*
* @note The position of the enumerator is not changed.
*