Skip to content

Don't call drop in tcpstream docs #18818

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

Merged
merged 1 commit into from
Nov 24, 2014
Merged

Conversation

steveklabnik
Copy link
Member

This suggests that you must call it, which is normally not what you want to do.

See here: http://www.reddit.com/r/rust/comments/2lpw9k/rust_irc_example_looking_for_feedback/clxnxxc?context=4

@@ -34,18 +34,20 @@ use sys::tcp::TcpAcceptor as TcpAcceptorImp;
/// A structure which represents a TCP stream between a local socket and a
/// remote socket.
///
/// The socket will be closed when the reference is dropped.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/reference/value/

@steveklabnik
Copy link
Member Author

Updated.

This suggests that you must call it, which is normally not what you want to do.
bors added a commit that referenced this pull request Nov 24, 2014
@bors bors closed this Nov 24, 2014
@bors bors merged commit 534fd3a into rust-lang:master Nov 24, 2014
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