about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiek Sanders <niek.sanders@gmail.com>2018-09-30 00:24:37 +0200
committerNiek Sanders <niek.sanders@gmail.com>2018-09-30 00:24:37 +0200
commitaf9eb4fc21bfeb7317446581194b659df2e73fa5 (patch)
tree63c372b0a325ae323ac600f28eb632df8587ce84
parentbb0896af11bb6b79051d4b794c70f78cd45d080f (diff)
downloadrust-af9eb4fc21bfeb7317446581194b659df2e73fa5.tar.gz
rust-af9eb4fc21bfeb7317446581194b659df2e73fa5.zip
Correct doc for WorkQueue<T>::pop().
-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() {