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 @@ -557,7 +557,7 @@ pub trait TryStreamExt: TryStream {
557557 /// them into a local vector. At most `capacity` items will get buffered
558558 /// before they're yielded from the returned stream. If the underlying stream
559559 /// returns `Poll::Pending`, and the collected chunk is not empty, it will
560- /// be immidiatly returned.
560+ /// be immediately returned.
561561 ///
562562 /// Note that the vectors returned from this iterator may not always have
563563 /// `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() {
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) ) ;
You can’t perform that action at this time.
0 commit comments