-
Notifications
You must be signed in to change notification settings - Fork 13k
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
fix doc for std::sync::mpmc #135876
base: master
Are you sure you want to change the base?
fix doc for std::sync::mpmc #135876
Conversation
library/std/src/sync/mpmc/mod.rs
Outdated
/// hang up immediately after this function returns [`Ok`]. If the channel | ||
/// is zero-capacity, however, the channel becomes a rendezvous channel and | ||
/// it guarantees that the receiver has indeed received the data if this | ||
/// function returns success. |
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.
This wording is a bit tricky. Maybe something like "However, if the channel is zero-capacity, it acts as a rendezvous channel and an Ok(())
result indicates the data was successfully received" or similar.
Otherwise LGTM.
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.
Now changed to
However, if the channel is zero-capacity, it acts as a rendezvous channel and a
return value of [`Ok`] means that the data is successfully received.
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.
Thanks, looks good with one nit: could you change "is successfully received" to "has been" or "was"?
After that please squash then r=me.
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.
Done.
Thanks! @bors r+ rollup |
fix document of
std::sync::mpmc
(tracked in #126840)