Skip to content

Commit f5cf967

Browse files
authored
Rollup merge of #88524 - soenkehahn:master, r=jyn514
Remove unnecessary `mut` from udp doctests I don't think this `mut` is necessary, since both `recv_from` and `send_to` take `&self`.
2 parents 13f6d7e + 4027629 commit f5cf967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)