Update docs of PriorityQueue.iterator() and PriorityDeque.iterator()

This commit is contained in:
Alexander Heinrich
2023-10-11 22:20:16 +02:00
committed by Veikka Tuominen
parent 1302274910
commit 4e188dd66c
2 changed files with 4 additions and 2 deletions

View File

@@ -416,7 +416,8 @@ pub fn PriorityDequeue(comptime T: type, comptime Context: type, comptime compar
};
/// Return an iterator that walks the queue without consuming
/// it. Invalidated if the queue is modified.
/// it. The iteration order may differ from the priority order.
/// Invalidated if the queue is modified.
pub fn iterator(self: *Self) Iterator {
return Iterator{
.queue = self,