File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,20 @@ impl UdpSocket {
165
165
166
166
/// Sets the broadcast flag on or off
167
167
#[ experimental]
168
- pub fn set_broadast ( & mut self , broadcast : bool ) -> IoResult < ( ) > {
168
+ pub fn set_broadcast ( & mut self , broadcast : bool ) -> IoResult < ( ) > {
169
169
if broadcast {
170
170
self . obj . hear_broadcasts ( )
171
171
} else {
172
172
self . obj . ignore_broadcasts ( )
173
173
} . map_err ( IoError :: from_rtio_error)
174
174
}
175
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
+
176
182
/// Sets the read/write timeout for this socket.
177
183
///
178
184
/// For more information, see `TcpStream::set_timeout`
You can’t perform that action at this time.
0 commit comments