diff options
author | Tore <toreskog@live.com> | 2020-01-28 20:07:29 +0100 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2020-01-28 11:07:29 -0800 |
commit | 8ed209b6125cb85039f676f00a3ae1dee1e0b747 (patch) | |
tree | 3ff3dedecf71aad08638476a8538da28d5ff83d7 /tokio/src/stream | |
parent | 4a24c7063b80f31106244b955942a5162a426cd1 (diff) |
docs: fix `stream::pending()` example (#2189)
Diffstat (limited to 'tokio/src/stream')
-rw-r--r-- | tokio/src/stream/pending.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/stream/pending.rs b/tokio/src/stream/pending.rs index 8d954a98..abc38c44 100644 --- a/tokio/src/stream/pending.rs +++ b/tokio/src/stream/pending.rs @@ -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; |