Skip to content

Commit d69f91b

Browse files
vuittont60taiki-e
authored andcommitted
Fix typos (#2821)
1 parent c9ada34 commit d69f91b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

futures-util/src/stream/try_stream/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ pub trait TryStreamExt: TryStream {
660660
/// them into a local vector. At most `capacity` items will get buffered
661661
/// before they're yielded from the returned stream. If the underlying stream
662662
/// returns `Poll::Pending`, and the collected chunk is not empty, it will
663-
/// be immidiatly returned.
663+
/// be immediately returned.
664664
///
665665
/// Note that the vectors returned from this iterator may not always have
666666
/// `capacity` elements. If the underlying stream ended and only a partial

futures/tests/stream_futures_ordered.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn test_push_front() {
7272
stream.push_front(d_rx);
7373
d_tx.send(4).unwrap();
7474

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

168-
// These should all be recieved in reverse order
168+
// These should all be received in reverse order
169169
assert_eq!(Poll::Ready(Some(Ok(3))), stream.poll_next_unpin(&mut cx));
170170
assert_eq!(Poll::Ready(Some(Ok(2))), stream.poll_next_unpin(&mut cx));
171171
assert_eq!(Poll::Ready(Some(Ok(1))), stream.poll_next_unpin(&mut cx));

0 commit comments

Comments
 (0)