File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1051,7 +1051,7 @@ pub trait StreamExt: Stream {
1051
1051
///
1052
1052
/// # Panics
1053
1053
///
1054
- /// This method will panic of `capacity` is zero.
1054
+ /// This method will panic if `capacity` is zero.
1055
1055
#[ cfg( feature = "alloc" ) ]
1056
1056
fn chunks ( self , capacity : usize ) -> Chunks < Self >
1057
1057
where Self : Sized
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use futures_core::stream::Stream;
4
4
use futures_core:: task:: { Context , Poll } ;
5
5
use pin_utils:: unsafe_pinned;
6
6
7
- /// Creates a stream of single element
7
+ /// Creates a stream of a single element.
8
8
///
9
9
/// ```
10
10
/// #![feature(async_await)]
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ pub struct PollFn<F> {
13
13
14
14
impl < F > Unpin for PollFn < F > { }
15
15
16
- /// Creates a new stream wrapping around a function returning `Poll`.
16
+ /// Creates a new stream wrapping a function returning `Poll<Option<T>> `.
17
17
///
18
- /// Polling the returned stream delegates to the wrapped function.
18
+ /// Polling the returned stream calls the wrapped function.
19
19
///
20
20
/// # Examples
21
21
///
You can’t perform that action at this time.
0 commit comments