Skip to content

Commit 4a6fcc5

Browse files
jbcrailalexcrichton
authored andcommitted
Rename set_broadast() to set_broadcast().
1 parent e3fa23b commit 4a6fcc5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/libstd/io/net/udp.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,20 @@ impl UdpSocket {
165165

166166
/// Sets the broadcast flag on or off
167167
#[experimental]
168-
pub fn set_broadast(&mut self, broadcast: bool) -> IoResult<()> {
168+
pub fn set_broadcast(&mut self, broadcast: bool) -> IoResult<()> {
169169
if broadcast {
170170
self.obj.hear_broadcasts()
171171
} else {
172172
self.obj.ignore_broadcasts()
173173
}.map_err(IoError::from_rtio_error)
174174
}
175175

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+
176182
/// Sets the read/write timeout for this socket.
177183
///
178184
/// For more information, see `TcpStream::set_timeout`

0 commit comments

Comments
 (0)