about summary refs log tree commit diff
path: root/src/libstd/net
diff options
context:
space:
mode:
authorAbhishek Chanda <abhishek.becs@gmail.com>2016-10-27 15:23:19 +0100
committerAbhishek Chanda <abhishek.becs@gmail.com>2016-11-09 09:03:33 +0000
commit50bfc238169844fff8287efc48ee4da3076b2f78 (patch)
tree4260ec7e3b43766cf3693a66eed37f132a0c9b37 /src/libstd/net
parent46d39f3329487115e7d7dcd37bc64eea6ef9ba4e (diff)
downloadrust-50bfc238169844fff8287efc48ee4da3076b2f78.tar.gz
rust-50bfc238169844fff8287efc48ee4da3076b2f78.zip
Clarify that send_to might return an error in certain cases
Closes #34202
Diffstat (limited to 'src/libstd/net')
-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> {