mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-19 00:00:09 +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]
|
||||
/// async fn main() {
|
||||
/// let mut never = stream::empty::<i32>();
|
||||
/// let mut never = stream::pending::<i32>();
|
||||
///
|
||||
/// // This will never complete
|
||||
/// never.next().await;
|
||||
|
||||
Reference in New Issue
Block a user