Skip to content

Commit 4027629

Browse files
committed
Remove unnecessary mut from udp doctests
1 parent 56ea5e0 commit 4027629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/std/src/net/udp.rs

+1-1
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)