From 4027629edc9f52121824bc89dcce0d38862d5490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Hahn?= Date: Mon, 30 Aug 2021 22:31:34 -0600 Subject: [PATCH] Remove unnecessary `mut` from udp doctests --- library/std/src/net/udp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/net/udp.rs b/library/std/src/net/udp.rs index 871505843af..6354752e64e 100644 --- a/library/std/src/net/udp.rs +++ b/library/std/src/net/udp.rs @@ -39,7 +39,7 @@ /// /// fn main() -> std::io::Result<()> { /// { -/// let mut socket = UdpSocket::bind("127.0.0.1:34254")?; +/// let socket = UdpSocket::bind("127.0.0.1:34254")?; /// /// // Receives a single datagram message on the socket. If `buf` is too small to hold /// // the message, it will be cut off.