aboutsummaryrefslogtreecommitdiff
path: root/src/async_await/select_mod.rs
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-10-25 23:16:22 -0700
committerChih-Hung Hsieh <chh@google.com>2020-10-25 23:16:22 -0700
commitd45e96efa48a28ad7d831aa7da55f4b6fb9aa22d (patch)
treeaed583542acdae126b0bf494e7a48c8bdbad44cd /src/async_await/select_mod.rs
parent10466ab5740c4fd628db8b98d4150f4867d09d38 (diff)
downloadfutures-util-d45e96efa48a28ad7d831aa7da55f4b6fb9aa22d.tar.gz
Upgrade rust/crates/futures-util to 0.3.7
Test: make all rust crates Change-Id: I9af426348ba630949d7f3facc0717f439cfe5a7e
Diffstat (limited to 'src/async_await/select_mod.rs')
-rw-r--r--src/async_await/select_mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/async_await/select_mod.rs b/src/async_await/select_mod.rs
index 0471f09..47eca4d 100644
--- a/src/async_await/select_mod.rs
+++ b/src/async_await/select_mod.rs
@@ -14,7 +14,7 @@ macro_rules! document_select_macro {
/// (e.g. an `async fn` call) instead of a `Future` by name the `Unpin`
/// requirement is relaxed, since the macro will pin the resulting `Future`
/// on the stack. However the `Future` returned by the expression must
- /// still implement `FusedFuture`. This difference is presented
+ /// still implement `FusedFuture`.
///
/// Futures and streams which are not already fused can be fused using the
/// `.fuse()` method. Note, though, that fusing a future or stream directly
@@ -84,7 +84,7 @@ macro_rules! document_select_macro {
/// a_res = async_identity_fn(62).fuse() => a_res + 1,
/// b_res = async_identity_fn(13).fuse() => b_res,
/// };
- /// assert!(res == 63 || res == 12);
+ /// assert!(res == 63 || res == 13);
/// # });
/// ```
///
@@ -167,7 +167,7 @@ macro_rules! document_select_macro {
/// (e.g. an `async fn` call) instead of a `Future` by name the `Unpin`
/// requirement is relaxed, since the macro will pin the resulting `Future`
/// on the stack. However the `Future` returned by the expression must
- /// still implement `FusedFuture`. This difference is presented
+ /// still implement `FusedFuture`.
///
/// Futures and streams which are not already fused can be fused using the
/// `.fuse()` method. Note, though, that fusing a future or stream directly
@@ -322,7 +322,7 @@ document_select_macro! {
#[macro_export]
macro_rules! select {
($($tokens:tt)*) => {{
- use $crate::__reexport as __futures_crate;
+ use $crate::__private as __futures_crate;
$crate::select_internal! {
$( $tokens )*
}
@@ -332,7 +332,7 @@ document_select_macro! {
#[macro_export]
macro_rules! select_biased {
($($tokens:tt)*) => {{
- use $crate::__reexport as __futures_crate;
+ use $crate::__private as __futures_crate;
$crate::select_biased_internal! {
$( $tokens )*
}