Some improvements to the async docs#91192
Conversation
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
left a comment
There was a problem hiding this comment.
Try with these links and we'll see if the checker is happy. :)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Oh, on On a note, optimally it'd be nice if one could link to keywords simply by writing /// hello to [`if`], [`match`] and [`async`]
etc. |
|
To solve on |
|
@GuillaumeGomez oh ok I just thought allowing that only within the std might be nice because then this PR would have a few commits less. |
|
@rustbot ready |
|
Thanks! @bors: r+ rollup |
|
📌 Commit 297364e has been approved by |
Some improvements to the async docs The goal here is to make the docs overall a little bit more comprehensive and add more links between the things. One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work. r? `@GuillaumeGomez` do you know how I could get the keyword links to work?
Some improvements to the async docs The goal here is to make the docs overall a little bit more comprehensive and add more links between the things. One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work. r? ``@GuillaumeGomez`` do you know how I could get the keyword links to work?
Some improvements to the async docs The goal here is to make the docs overall a little bit more comprehensive and add more links between the things. One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work. r? ```@GuillaumeGomez``` do you know how I could get the keyword links to work?
…askrgr Rollup of 10 pull requests Successful merges: - rust-lang#91192 (Some improvements to the async docs) - rust-lang#94143 (rustc_const_eval: adopt let else in more places) - rust-lang#94156 (Gracefully handle non-UTF-8 string slices when pretty printing) - rust-lang#94186 (Update pin_static_ref stabilization version.) - rust-lang#94189 (Implement LowerHex on Scalar to clean up their display in rustdoc) - rust-lang#94190 (Use Metadata::modified instead of FileTime::from_last_modification_ti…) - rust-lang#94203 (CTFE engine: Scalar: expose size-generic to_(u)int methods) - rust-lang#94211 (Better error if the user tries to do assignment ... else) - rust-lang#94215 (trait system: comments and small nonfunctional changes) - rust-lang#94220 (Correctly handle miniz_oxide extern crate declaration) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
| use crate::task::{Context, Poll}; | ||
|
|
||
| /// A future represents an asynchronous computation. | ||
| /// A future represents an asynchronous computation obtained by use of [`async`]. |
There was a problem hiding this comment.
This might be confusing; it isn't only obtained via async since Future is implemented manually for e.g. system resources. Most await chains bottom out in one of these manual implementations.
There was a problem hiding this comment.
Feel free to follow up with another PR.
The goal here is to make the docs overall a little bit more comprehensive and add more links between the things.
One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work.
r? @GuillaumeGomez do you know how I could get the keyword links to work?