Remove unnecessary mut from udp doctests

This commit is contained in:
Sönke Hahn 2021-08-30 22:31:34 -06:00
parent 56ea5e0ee9
commit 4027629edc

View File

@ -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.