Skip to content

Commit 407d74c

Browse files
jbcrailalexcrichton
authored andcommitted
---
yaml --- r: 131487 b: refs/heads/dist-snap c: 4a6fcc5 h: refs/heads/master i: 131485: f9d7ccf 131483: d6a6631 131479: f11f4f6 131471: 7d22ecc 131455: f1f7b43 v: v3
1 parent 261538f commit 407d74c

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
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: e3fa23bcb64064d50c2a9e3b5870bc82081359d9
9+
refs/heads/dist-snap: 4a6fcc51a063a49c1b7a330828c857849d1e3119
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

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