Rollup merge of #61227 - diwic:patch-2, r=Centril
Use .await syntax instead of await! Tiny doc fix.
This commit is contained in:
commit
c48835ba19
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ use crate::task::{Context, Poll};
|
|||
/// task.
|
||||
///
|
||||
/// When using a future, you generally won't call `poll` directly, but instead
|
||||
/// `await!` the value.
|
||||
/// `.await` the value.
|
||||
#[doc(spotlight)]
|
||||
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
||||
#[stable(feature = "futures_api", since = "1.36.0")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue