Rename set_broadast() to set_broadcast().
This commit is contained in:
parent
e3fa23bcb6
commit
4a6fcc51a0
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user