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 {
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`
You can’t perform that action at this time.
0 commit comments