]> git.lizzy.rs Git - rust.git/commitdiff
Correct doc for WorkQueue<T>::pop().
authorNiek Sanders <niek.sanders@gmail.com>
Sat, 29 Sep 2018 22:24:37 +0000 (00:24 +0200)
committerNiek Sanders <niek.sanders@gmail.com>
Sat, 29 Sep 2018 22:24:37 +0000 (00:24 +0200)
src/librustc_data_structures/work_queue.rs

index af9ed9306ebb2f29be1396d21a22a64c9a097db8..eff80a98c9de905a6b293fea73d7c2c8aa08743f 100644 (file)
@@ -53,7 +53,7 @@ pub fn insert(&mut self, element: T) -> bool {
         }
     }
 
-    /// 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() {