Skip to content

Commit

Permalink
Correct doc for WorkQueue<T>::pop().
Browse files Browse the repository at this point in the history
  • Loading branch information
nieksand committed Sep 29, 2018
1 parent bb0896a commit af9eb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_data_structures/work_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit af9eb4f

Please sign in to comment.