Skip to content

Commit 57e3b9e

Browse files
committed
Indicate where the std::net::Incoming struct is created.
1 parent 28ce3e8 commit 57e3b9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libstd/net/tcp.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ pub struct TcpListener(net_imp::TcpListener);
7777
///
7878
/// This iterator will infinitely yield `Some` of the accepted connections. It
7979
/// is equivalent to calling `accept` in a loop.
80+
///
81+
/// This `struct` is created by the [`incoming`] method on [`TcpListener`].
82+
///
83+
/// [`incoming`]: struct.TcpListener.html#method.incoming
84+
/// [`TcpListener`]: struct.TcpListener.html
8085
#[stable(feature = "rust1", since = "1.0.0")]
8186
pub struct Incoming<'a> { listener: &'a TcpListener }
8287

0 commit comments

Comments
 (0)