-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread docs #38433
Thread docs #38433
Conversation
2b966eb
to
638b3b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after the link fix
//! * By spawning a new thread, e.g. using the `thread::spawn` function, and | ||
//! calling `thread()` on the `JoinHandle`. | ||
//! * By requesting the current thread, using the `thread::current` function. | ||
//! * By spawning a new thread, e.g. using the [`thread::spawn`][`spawn] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[`thread::spawn`][`spawn]
This looks like a typo.
//! calling `thread()` on the `JoinHandle`. | ||
//! * By requesting the current thread, using the `thread::current` function. | ||
//! * By spawning a new thread, e.g. using the [`thread::spawn`][`spawn] | ||
//! function, and calling [`thread()`] on the [`JoinHandle`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: As per the docs meeting this week, we don't need the ()
in the function/method display names for links, but we can address all these later in one PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer so if you don't mind.
638b3b9
to
79e8a70
Compare
@bors: r=frewsxcv |
📌 Commit 79e8a70 has been approved by |
@bors rollup |
Thread docs r? @frewscvx
r? @frewscvx