mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
docs: fix stream::pending() example (#2189)
This commit is contained in:
@@ -27,7 +27,7 @@ impl<T> Unpin for Pending<T> {}
|
|||||||
///
|
///
|
||||||
/// #[tokio::main]
|
/// #[tokio::main]
|
||||||
/// async fn main() {
|
/// async fn main() {
|
||||||
/// let mut never = stream::empty::<i32>();
|
/// let mut never = stream::pending::<i32>();
|
||||||
///
|
///
|
||||||
/// // This will never complete
|
/// // This will never complete
|
||||||
/// never.next().await;
|
/// never.next().await;
|
||||||
|
|||||||
Reference in New Issue
Block a user