diff --git a/src/librustc_data_structures/work_queue.rs b/src/librustc_data_structures/work_queue.rs index af9ed9306eb..eff80a98c9d 100644 --- a/src/librustc_data_structures/work_queue.rs +++ b/src/librustc_data_structures/work_queue.rs @@ -53,7 +53,7 @@ impl WorkQueue { } } - /// Attempt to enqueue `element` in the work queue. Returns false if it was already present. + /// Attempt to pop an element from the work queue. #[inline] pub fn pop(&mut self) -> Option { if let Some(element) = self.deque.pop_front() {