Remove unnecessary mut
from udp doctests
This commit is contained in:
parent
56ea5e0ee9
commit
4027629edc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user