File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
futures-util/src/stream/try_stream Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ pub trait TryStreamExt: TryStream {
660
660
/// them into a local vector. At most `capacity` items will get buffered
661
661
/// before they're yielded from the returned stream. If the underlying stream
662
662
/// returns `Poll::Pending`, and the collected chunk is not empty, it will
663
- /// be immidiatly returned.
663
+ /// be immediately returned.
664
664
///
665
665
/// Note that the vectors returned from this iterator may not always have
666
666
/// `capacity` elements. If the underlying stream ended and only a partial
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ fn test_push_front() {
72
72
stream. push_front ( d_rx) ;
73
73
d_tx. send ( 4 ) . unwrap ( ) ;
74
74
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
76
76
// and then 3 after it
77
77
assert_eq ! ( Poll :: Ready ( Some ( Ok ( 4 ) ) ) , stream. poll_next_unpin( & mut cx) ) ;
78
78
assert_eq ! ( Poll :: Ready ( Some ( Ok ( 3 ) ) ) , stream. poll_next_unpin( & mut cx) ) ;
@@ -165,7 +165,7 @@ fn test_push_front_negative() {
165
165
b_tx. send ( 2 ) . unwrap ( ) ;
166
166
c_tx. send ( 3 ) . unwrap ( ) ;
167
167
168
- // These should all be recieved in reverse order
168
+ // These should all be received in reverse order
169
169
assert_eq ! ( Poll :: Ready ( Some ( Ok ( 3 ) ) ) , stream. poll_next_unpin( & mut cx) ) ;
170
170
assert_eq ! ( Poll :: Ready ( Some ( Ok ( 2 ) ) ) , stream. poll_next_unpin( & mut cx) ) ;
171
171
assert_eq ! ( Poll :: Ready ( Some ( Ok ( 1 ) ) ) , stream. poll_next_unpin( & mut cx) ) ;
You can’t perform that action at this time.
0 commit comments