We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mut
1 parent 56ea5e0 commit 4027629Copy full SHA for 4027629
library/std/src/net/udp.rs
@@ -39,7 +39,7 @@ use crate::time::Duration;
39
///
40
/// fn main() -> std::io::Result<()> {
41
/// {
42
-/// let mut socket = UdpSocket::bind("127.0.0.1:34254")?;
+/// let socket = UdpSocket::bind("127.0.0.1:34254")?;
43
44
/// // Receives a single datagram message on the socket. If `buf` is too small to hold
45
/// // the message, it will be cut off.
0 commit comments