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`.
This commit is contained in:
commit
f5cf9678c2
@ -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