Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #2821

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion futures-util/src/stream/try_stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ pub trait TryStreamExt: TryStream {
/// them into a local vector. At most `capacity` items will get buffered
/// before they're yielded from the returned stream. If the underlying stream
/// returns `Poll::Pending`, and the collected chunk is not empty, it will
/// be immidiatly returned.
/// be immediately returned.
///
/// Note that the vectors returned from this iterator may not always have
/// `capacity` elements. If the underlying stream ended and only a partial
Expand Down
4 changes: 2 additions & 2 deletions futures/tests/stream_futures_ordered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn test_push_front() {
stream.push_front(d_rx);
d_tx.send(4).unwrap();

// we pushed `d_rx` to the front and sent 4, so we should recieve 4 next
// we pushed `d_rx` to the front and sent 4, so we should receive 4 next
// and then 3 after it
assert_eq!(Poll::Ready(Some(Ok(4))), stream.poll_next_unpin(&mut cx));
assert_eq!(Poll::Ready(Some(Ok(3))), stream.poll_next_unpin(&mut cx));
Expand Down Expand Up @@ -165,7 +165,7 @@ fn test_push_front_negative() {
b_tx.send(2).unwrap();
c_tx.send(3).unwrap();

// These should all be recieved in reverse order
// These should all be received in reverse order
assert_eq!(Poll::Ready(Some(Ok(3))), stream.poll_next_unpin(&mut cx));
assert_eq!(Poll::Ready(Some(Ok(2))), stream.poll_next_unpin(&mut cx));
assert_eq!(Poll::Ready(Some(Ok(1))), stream.poll_next_unpin(&mut cx));
Expand Down