summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-11-09 20:51:16 +0200
committerGitHub <noreply@github.com>2016-11-09 20:51:16 +0200
commitd712882228c9b2900fcb33a5e171553bd779116e (patch)
tree3391c5cf2db950582ed1f45c7a32439699636e46 /src/libstd
parentbd9969fb1138d3a0aef0e860173a5f221a74e7ab (diff)
parent50bfc238169844fff8287efc48ee4da3076b2f78 (diff)
downloadrust-d712882228c9b2900fcb33a5e171553bd779116e.tar.gz
rust-d712882228c9b2900fcb33a5e171553bd779116e.zip
Rollup merge of #37432 - achanda:send_to, r=alexcrichton
Clarify that send_to might panic in certain cases

Closes #34202

r? @alexcrichton
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net/udp.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs
index c03ac496adb..559250adac5 100644
--- a/src/libstd/net/udp.rs
+++ b/src/libstd/net/udp.rs
@@ -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> {