docs: fix stream::pending() example (#2189)

This commit is contained in:
Tore
2020-01-28 11:07:29 -08:00
committed by Carl Lerche
parent 4a24c7063b
commit 8ed209b612
+1 -1
View File
@@ -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;