We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mut
1 parent 78a1a86 commit 8e05f97Copy full SHA for 8e05f97
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