Skip to content

Commit a38e758

Browse files
committed
Auto merge of #26457 - meqif:master, r=alexcrichton
The documentation of `std::net::Shutdown` mentions says it can be passed to the `shutdown` method of `UdpSocket`, which isn't true because `UdpSocket` has no such method. This commit removes that mention.
2 parents 1ec599c + 7543edc commit a38e758

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/net/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ mod udp;
3030
mod parser;
3131
#[cfg(test)] mod test;
3232

33-
/// Possible values which can be passed to the `shutdown` method of `TcpStream`
34-
/// and `UdpSocket`.
33+
/// Possible values which can be passed to the `shutdown` method of `TcpStream`.
3534
#[derive(Copy, Clone, PartialEq, Debug)]
3635
#[stable(feature = "rust1", since = "1.0.0")]
3736
pub enum Shutdown {

0 commit comments

Comments
 (0)