Skip to content

Commit

Permalink
Remove unnecessary mut from udp doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
soenkehahn committed Aug 31, 2021
1 parent 56ea5e0 commit 4027629
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 4027629

Please sign in to comment.