From 5c5f08ab9375606a686223bdf3d883cf8dac0e04 Mon Sep 17 00:00:00 2001 From: diwic Date: Mon, 27 May 2019 07:27:13 +0200 Subject: [PATCH] Use .await syntax instead of await! --- src/libcore/future/future.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs index 3f76ac20192ba..0492fd709b8dc 100644 --- a/src/libcore/future/future.rs +++ b/src/libcore/future/future.rs @@ -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")]