Skip to content

Commit 8e05f97

Browse files
committed
Remove unnecessary mut from udp doctests
1 parent 78a1a86 commit 8e05f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/net/udp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use crate::time::Duration;
3939
///
4040
/// fn main() -> std::io::Result<()> {
4141
/// {
42-
/// let mut socket = UdpSocket::bind("127.0.0.1:34254")?;
42+
/// let socket = UdpSocket::bind("127.0.0.1:34254")?;
4343
///
4444
/// // Receives a single datagram message on the socket. If `buf` is too small to hold
4545
/// // the message, it will be cut off.

0 commit comments

Comments
 (0)