-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Thread docs fix and improvements. #43619
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
Conversation
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.
Bangs where they shouldn't be
src/libstd/thread/mod.rs
Outdated
@@ -834,6 +835,9 @@ pub fn park_timeout(dur: Duration) { | |||
/// let other_thread_id = other_thread.join().unwrap(); | |||
/// assert!(thread::current().id() != other_thread_id); | |||
/// ``` | |||
/// | |||
//! [`id`]: ../../std/thread/struct.Thread.html#method.id | |||
//! [`Thread`]: ../../std/thread/struct.Thread.html |
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.
//!
src/libstd/thread/mod.rs
Outdated
@@ -896,6 +900,9 @@ struct Inner { | |||
/// docs of [`Builder`] and [`spawn`] for more details. | |||
/// | |||
/// [`Builder`]: ../../std/thread/struct.Builder.html | |||
//! [`JoinHandle::thread`]: ../../std/thread/struct.JoinHandle.html#method.thread | |||
//! [`JoinHandle`]: ../../std/thread/struct.JoinHandle.html | |||
//! [`thread::current`]: ../../std/thread/fn.current.html |
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.
//!
c914b5c
to
034dcfd
Compare
034dcfd
to
4c08c13
Compare
Comments have been addressed in the latest force push.
@bors r+ rollup |
📌 Commit 4c08c13 has been approved by |
Thread docs fix and improvements. None
☀️ Test successful - status-appveyor, status-travis |
No description provided.