diff --git a/library/std/src/net/udp.rs b/library/std/src/net/udp.rs index 871505843af23..6354752e64e76 100644 --- a/library/std/src/net/udp.rs +++ b/library/std/src/net/udp.rs @@ -39,7 +39,7 @@ use crate::time::Duration; /// /// fn main() -> std::io::Result<()> { /// { -/// let mut socket = UdpSocket::bind("127.0.0.1:34254")?; +/// let socket = UdpSocket::bind("127.0.0.1:34254")?; /// /// // Receives a single datagram message on the socket. If `buf` is too small to hold /// // the message, it will be cut off.