@@ -2203,37 +2203,39 @@ mod where_keyword {} |
|
|
2203 |
2203 |
/// |
2204 |
2204 |
/// Use `async` in front of `fn`, `closure`, or a `block` to turn the marked code into a `Future`. |
2205 |
2205 |
/// As such the code will not be run immediately, but will only be evaluated when the returned |
2206 |
|
-/// future is `.await`ed. |
|
2206 |
+/// future is [`.await`]ed. |
2207 |
2207 |
/// |
2208 |
|
-/// We have written an [async book] detailing async/await and trade-offs compared to using threads. |
|
2208 |
+/// We have written an [async book] detailing `async`/`await` and trade-offs compared to using threads. |
2209 |
2209 |
/// |
2210 |
2210 |
/// ## Editions |
2211 |
2211 |
/// |
2212 |
2212 |
/// `async` is a keyword from the 2018 edition onwards. |
2213 |
2213 |
/// |
2214 |
|
-/// It is available for use in stable rust from version 1.39 onwards. |
|
2214 |
+/// It is available for use in stable Rust from version 1.39 onwards. |
2215 |
2215 |
/// |
2216 |
2216 |
/// [`Future`]: future::Future |
|
2217 |
+/// [`.await`]: ../std/keyword.await.html |
2217 |
2218 |
/// [async book]: https://rust-lang.github.io/async-book/ |
2218 |
2219 |
mod async_keyword {} |
2219 |
2220 |
|
2220 |
2221 |
#[doc(keyword = "await")] |
2221 |
2222 |
// |
2222 |
2223 |
/// Suspend execution until the result of a [`Future`] is ready. |
2223 |
2224 |
/// |
2224 |
|
-/// `.await`ing a future will suspend the current function's execution until the `executor` |
|
2225 |
+/// `.await`ing a future will suspend the current function's execution until the executor |
2225 |
2226 |
/// has run the future to completion. |
2226 |
2227 |
/// |
2227 |
|
-/// Read the [async book] for details on how async/await and executors work. |
|
2228 |
+/// Read the [async book] for details on how [`async`]/`await` and executors work. |
2228 |
2229 |
/// |
2229 |
2230 |
/// ## Editions |
2230 |
2231 |
/// |
2231 |
2232 |
/// `await` is a keyword from the 2018 edition onwards. |
2232 |
2233 |
/// |
2233 |
|
-/// It is available for use in stable rust from version 1.39 onwards. |
|
2234 |
+/// It is available for use in stable Rust from version 1.39 onwards. |
2234 |
2235 |
/// |
2235 |
2236 |
/// [`Future`]: future::Future |
2236 |
2237 |
/// [async book]: https://rust-lang.github.io/async-book/ |
|
2238 |
+/// [`async`]: ../std/keyword.async.html |
2237 |
2239 |
mod await_keyword {} |
2238 |
2240 |
|
2239 |
2241 |
#[doc(keyword = "dyn")] |