Skip to content

Commit

Permalink
Rollup merge of rust-lang#37432 - achanda:send_to, r=alexcrichton
Browse files Browse the repository at this point in the history
Clarify that send_to might panic in certain cases

Closes rust-lang#34202

r? @alexcrichton
  • Loading branch information
eddyb authored Nov 9, 2016
2 parents bd9969f + 50bfc23 commit d712882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstd/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ impl UdpSocket {
///
/// Address type can be any implementor of `ToSocketAddrs` trait. See its
/// documentation for concrete examples.
/// This will return an error when the IP version of the local socket
/// does not match that returned from `ToSocketAddrs`
/// See https://github.com/rust-lang/rust/issues/34202 for more details.
#[stable(feature = "rust1", since = "1.0.0")]
pub fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], addr: A)
-> io::Result<usize> {
Expand Down

0 comments on commit d712882

Please sign in to comment.