We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3fa23b commit 4a6fcc5Copy full SHA for 4a6fcc5
src/libstd/io/net/udp.rs
@@ -165,14 +165,20 @@ impl UdpSocket {
165
166
/// Sets the broadcast flag on or off
167
#[experimental]
168
- pub fn set_broadast(&mut self, broadcast: bool) -> IoResult<()> {
+ pub fn set_broadcast(&mut self, broadcast: bool) -> IoResult<()> {
169
if broadcast {
170
self.obj.hear_broadcasts()
171
} else {
172
self.obj.ignore_broadcasts()
173
}.map_err(IoError::from_rtio_error)
174
}
175
176
+ /// Sets the broadcast flag on or off
177
+ #[deprecated="renamed to `set_broadcast`"]
178
+ pub fn set_broadast(&mut self, broadcast: bool) -> IoResult<()> {
179
+ self.set_broadcast(broadcast)
180
+ }
181
+
182
/// Sets the read/write timeout for this socket.
183
///
184
/// For more information, see `TcpStream::set_timeout`
0 commit comments