Skip to content

Commit 5f5b3bc

Browse files
authored
Rollup merge of rust-lang#79211 - yoshuawuyts:future-doc-alias, r=Mark-Simulacrum
Add the "async" and "promise" doc aliases to `core::future::Future` Adds the "async" and "promise" doc aliases to `core::future::Future`. This enables people who search for "async" or "promise" to find `Future`, which is Rust's core primitive for async programming. Thanks!
2 parents caaa6db + 48d5874 commit 5f5b3bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/keyword_docs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,7 @@ mod where_keyword {}
21962196

21972197
// 2018 Edition keywords
21982198

2199+
#[doc(alias = "promise")]
21992200
#[doc(keyword = "async")]
22002201
//
22012202
/// Return a [`Future`] instead of blocking the current thread.

0 commit comments

Comments
 (0)