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

std::net::UdpSocket documentation about returned data is misleading #24925

Closed
frewsxcv opened this issue Apr 29, 2015 · 0 comments · Fixed by #24961
Closed

std::net::UdpSocket documentation about returned data is misleading #24925

frewsxcv opened this issue Apr 29, 2015 · 0 comments · Fixed by #24961

Comments

@frewsxcv
Copy link
Member

/// Sends data on the socket to the given address. Returns nothing on
/// success.

Returns nothing on success.

Considering the return type is Result<usize, Error>, it doesn't seem like 'nothing' is an option

nham pushed a commit to nham/rust that referenced this issue Apr 29, 2015
This adds some missing punctuation, adds a missing word, and
corrects a bug in the description of `send_to`, which actually
returns the number of bytes written on success.

Fixes rust-lang#24925.
alexcrichton added a commit to alexcrichton/rust that referenced this issue Apr 29, 2015
Changes made include adding missing punctuation, adding missing words, and converting uses of "Gets" to "Returns" in libstd/net/addr.rs to make it more consistent with the other documentation.

Fixes rust-lang#24925.
steveklabnik pushed a commit to steveklabnik/rust that referenced this issue May 10, 2015
This adds some missing punctuation, adds a missing word, and
corrects a bug in the description of `send_to`, which actually
returns the number of bytes written on success.

Fixes rust-lang#24925.
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 a pull request may close this issue.

2 participants