Skip to content
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 a couple places in docs where try_send wasn't changed to send_opt #13610

Merged
merged 2 commits into from
Apr 19, 2014

Conversation

jsanders
Copy link
Contributor

I was getting a bit confused by these and (I think) managed to track it down to fallout from #13448 and #13465.

@@ -669,7 +669,7 @@ impl<T: Send> SyncSender<T> {

/// Attempts to send a value on this channel without blocking.
///
/// This method semantically differs from `Sender::try_send` because it can
/// This method semantically differs from `Sender::send_opt` because it can
/// fail if the receiver has not disconnected yet. If the buffer on this
/// channel is full, this function will immediately return the data back to
/// the callee.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, this paragraph is a bit odd now that it's no longer talking about a neighboring function with the same name. Could you change the text to this?

This method differs from send_opt by returning immediately if the channel's buffer is full or no receiver is waiting to acquire some data. Compared with send_opt, this function has two failure cases instead of one (one for disconnection, one for a full buffer).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that bugged me too, but I wasn't sure what would be better. Changed it to use your text!

bors added a commit that referenced this pull request Apr 19, 2014
…hton

I was getting a bit confused by these and (I think) managed to track it down to fallout from #13448 and #13465.
@bors bors closed this Apr 19, 2014
@bors bors merged commit 29c291b into rust-lang:master Apr 19, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 7, 2024
Add test case for `missing_errors_doc` at tests with option `check-private-item=true`

Add test case for `missing_errors_doc` at tests with option `check-private-item=true` to proof that rust-lang/rust-clippy#13391 is not an issue anymore

changelog: none

Closes: rust-lang/rust-clippy#13391
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants