Skip to content

Commit f2d8db1

Browse files
committed
Link to relevant method/struct for std::net::Shutdown docs.
1 parent 57e3b9e commit f2d8db1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libstd/net/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ mod udp;
3535
mod parser;
3636
#[cfg(test)] mod test;
3737

38-
/// Possible values which can be passed to the `shutdown` method of `TcpStream`.
38+
/// Possible values which can be passed to the [`shutdown`] method of
39+
/// [`TcpStream`].
40+
///
41+
/// [`shutdown`]: struct.TcpStream.html#method.shutdown
42+
/// [`TcpStream`]: struct.TcpStream.html
3943
#[derive(Copy, Clone, PartialEq, Debug)]
4044
#[stable(feature = "rust1", since = "1.0.0")]
4145
pub enum Shutdown {

0 commit comments

Comments
 (0)