Skip to content

Commit

Permalink
Rollup merge of #88524 - soenkehahn:master, r=jyn514
Browse files Browse the repository at this point in the history
Remove unnecessary `mut` from udp doctests

I don't think this `mut` is necessary, since both `recv_from` and `send_to` take `&self`.
  • Loading branch information
m-ou-se authored Aug 31, 2021
2 parents 13f6d7e + 4027629 commit f5cf967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f5cf967

Please sign in to comment.