Skip to content

Commit af9eb4f

Browse files
committed
Correct doc for WorkQueue<T>::pop().
1 parent bb0896a commit af9eb4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_data_structures/work_queue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<T: Idx> WorkQueue<T> {
5353
}
5454
}
5555

56-
/// Attempt to enqueue `element` in the work queue. Returns false if it was already present.
56+
/// Attempt to pop an element from the work queue.
5757
#[inline]
5858
pub fn pop(&mut self) -> Option<T> {
5959
if let Some(element) = self.deque.pop_front() {

0 commit comments

Comments
 (0)