]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/future/future.rs
Auto merge of #94702 - b-naber:static-refs-mir, r=lcnr
[rust.git] / library / core / src / future / future.rs
index 6b62236b32fafba661caf2dc1a2ae098029f6d73..f29d3e1e98b724777673fef70d399b4408eb2baa 100644 (file)
@@ -5,7 +5,7 @@
 use crate::pin::Pin;
 use crate::task::{Context, Poll};
 
-/// A future represents an asynchronous computation.
+/// A future represents an asynchronous computation obtained by use of [`async`].
 ///
 /// A future is a value that might not have finished computing yet. This kind of
 /// "asynchronous value" makes it possible for a thread to continue doing useful
@@ -23,6 +23,7 @@
 /// When using a future, you generally won't call `poll` directly, but instead
 /// `.await` the value.
 ///
+/// [`async`]: ../../std/keyword.async.html
 /// [`Waker`]: crate::task::Waker
 #[doc(notable_trait)]
 #[must_use = "futures do nothing unless you `.await` or poll them"]