From 4a6fcc51a063a49c1b7a330828c857849d1e3119 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Thu, 3 Jul 2014 01:30:00 -0400 Subject: [PATCH] Rename set_broadast() to set_broadcast(). --- src/libstd/io/net/udp.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libstd/io/net/udp.rs b/src/libstd/io/net/udp.rs index cd78898d46b..21903eb2643 100644 --- a/src/libstd/io/net/udp.rs +++ b/src/libstd/io/net/udp.rs @@ -165,7 +165,7 @@ impl UdpSocket { /// Sets the broadcast flag on or off #[experimental] - pub fn set_broadast(&mut self, broadcast: bool) -> IoResult<()> { + pub fn set_broadcast(&mut self, broadcast: bool) -> IoResult<()> { if broadcast { self.obj.hear_broadcasts() } else { @@ -173,6 +173,12 @@ impl UdpSocket { }.map_err(IoError::from_rtio_error) } + /// Sets the broadcast flag on or off + #[deprecated="renamed to `set_broadcast`"] + pub fn set_broadast(&mut self, broadcast: bool) -> IoResult<()> { + self.set_broadcast(broadcast) + } + /// Sets the read/write timeout for this socket. /// /// For more information, see `TcpStream::set_timeout`