-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add missing urls and examples for Condvar docs #40033
Conversation
#[derive(Debug, PartialEq, Eq, Copy, Clone)] | ||
#[stable(feature = "wait_timeout", since = "1.5.0")] | ||
pub struct WaitTimeoutResult(bool); | ||
|
||
impl WaitTimeoutResult { | ||
/// Returns whether the wait was known to have timed out. | ||
/// | ||
/// # Examples |
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.
There's a lot going on in the examples in this pull request, and I understand they probably can't get much smaller, but is it possible you could add a short sentence before each example giving an overview of what's going on?
In this particular example, maybe: "Using a CondVar to notify the main thread when when a child thread has started:"
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 wonder: is a summary enough or wouldn't it be better to just add more comments?
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.
Up to you, though I don't think it would hurt to have both
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.
Let's do both then!
b30735c
to
b16ce2c
Compare
So apparently, the PS: the code sample is here. |
b16ce2c
to
7c2439a
Compare
7c2439a
to
d3b8f56
Compare
cc @frewsxcv |
@bors r+ rollup |
📌 Commit d3b8f56 has been approved by |
…sxcv Add missing urls and examples for Condvar docs r? @frewsxcv
…sxcv Add missing urls and examples for Condvar docs r? @frewsxcv
r? @frewsxcv