Skip to content

Commit 43f5131

Browse files
jbcrailalexcrichton
authored andcommitted
---
yaml --- r: 122725 b: refs/heads/snap-stage3 c: 4a6fcc5 h: refs/heads/master i: 122723: 511fbd8 v: v3
1 parent 4570674 commit 43f5131

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 1bff1ff810dcfa8064c11e2b84473f053d1f69f1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e3fa23bcb64064d50c2a9e3b5870bc82081359d9
4+
refs/heads/snap-stage3: 4a6fcc51a063a49c1b7a330828c857849d1e3119
55
refs/heads/try: 2e9d9477b848cec778ca3f07ecdf0aea6ade23de
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)