-
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
TcpListener docs example contains an explicit drop that can never be reached #35950
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
Comments
Also, what are the semantics of this iterator when the listener is set to nonblocking mode? If it's equivalent to |
That's what it'd do, yeah. The |
steveklabnik
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Mar 10, 2017
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Apr 25, 2017
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Apr 25, 2017
Clean up TcpStream example Fixes rust-lang#35950
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Apr 25, 2017
Clean up TcpStream example Fixes rust-lang#35950
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Apr 26, 2017
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Apr 27, 2017
Clean up TcpStream example Fixes rust-lang#35950
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 27, 2017
Clean up TcpStream example Fixes rust-lang#35950
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Apr 27, 2017
Clean up TcpStream example Fixes rust-lang#35950
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
The
incoming
iterator never returnsNone
, so thedrop
at the end will never be reached. The explicit matching against the socket result also seems potentially nonconventional docs-wise?https://doc.rust-lang.org/std/net/struct.TcpListener.html#examples
The text was updated successfully, but these errors were encountered: