Skip to content

Commit bf47f8d

Browse files
jbcrailalexcrichton
authored andcommitted
---
yaml --- r: 153065 b: refs/heads/try2 c: 4a6fcc5 h: refs/heads/master i: 153063: 7e4dde4 v: v3
1 parent a2cad1c commit bf47f8d

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: e3fa23bcb64064d50c2a9e3b5870bc82081359d9
8+
refs/heads/try2: 4a6fcc51a063a49c1b7a330828c857849d1e3119
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)