about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSönke Hahn <soenkehahn@gmail.com>2021-08-30 22:31:34 -0600
committerSönke Hahn <soenkehahn@gmail.com>2021-08-30 22:31:34 -0600
commit4027629edc9f52121824bc89dcce0d38862d5490 (patch)
tree235bbedf1f13c110d4ca2a7fe07ea993c101368c
parent56ea5e0ee948999a916ff5f3d78ed79716d1006b (diff)
downloadrust-4027629edc9f52121824bc89dcce0d38862d5490.tar.gz
rust-4027629edc9f52121824bc89dcce0d38862d5490.zip
Remove unnecessary `mut` from udp doctests
-rw-r--r--library/std/src/net/udp.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ use crate::time::Duration;
 ///
 /// 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.