mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
docs: fix stream::pending()
example (#2189)
This commit is contained in:
parent
4a24c7063b
commit
8ed209b612
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user