Skip to content

Commit

Permalink
Indicate where the std::net::Incoming struct is created.
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Aug 2, 2016
1 parent 28ce3e8 commit 57e3b9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libstd/net/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ pub struct TcpListener(net_imp::TcpListener);
///
/// This iterator will infinitely yield `Some` of the accepted connections. It
/// is equivalent to calling `accept` in a loop.
///
/// This `struct` is created by the [`incoming`] method on [`TcpListener`].
///
/// [`incoming`]: struct.TcpListener.html#method.incoming
/// [`TcpListener`]: struct.TcpListener.html
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Incoming<'a> { listener: &'a TcpListener }

Expand Down

0 comments on commit 57e3b9e

Please sign in to comment.