Skip to content

Commit 0598c66

Browse files
MajorBreakfastcramertj
authored andcommitted
Avoid the word "slab" in comment to avoid confusion with slab crate
1 parent 9272cae commit 0598c66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

futures-util/src/stream/buffer_unordered.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ where
106106
cx: &mut Context<'_>,
107107
) -> Poll<Option<Self::Item>> {
108108
// First up, try to spawn off as many futures as possible by filling up
109-
// our slab of futures.
109+
// our queue of futures.
110110
while self.in_progress_queue.len() < self.max {
111111
match self.as_mut().stream().poll_next(cx) {
112112
Poll::Ready(Some(fut)) => self.as_mut().in_progress_queue().push(fut),

futures-util/src/try_stream/try_buffer_unordered.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<St> Stream for TryBufferUnordered<St>
8484
cx: &mut Context<'_>,
8585
) -> Poll<Option<Self::Item>> {
8686
// First up, try to spawn off as many futures as possible by filling up
87-
// our slab of futures. Propagate errors from the stream immediately.
87+
// our queue of futures. Propagate errors from the stream immediately.
8888
while self.in_progress_queue.len() < self.max {
8989
match self.as_mut().stream().poll_next(cx)? {
9090
Poll::Ready(Some(fut)) => self.as_mut().in_progress_queue().push(fut.into_future()),

0 commit comments

Comments
 (0)