about summary refs log tree commit diff
path: root/src/librustc_data_structures/work_queue.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_data_structures/work_queue.rs')
-rw-r--r--src/librustc_data_structures/work_queue.rs2
1 files changed, 1 insertions, 1 deletions
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<T: Idx> WorkQueue<T> {
         }
     }
 
-    /// 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<T> {
         if let Some(element) = self.deque.pop_front() {