diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2016-11-09 20:51:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-09 20:51:16 +0200 |
| commit | d712882228c9b2900fcb33a5e171553bd779116e (patch) | |
| tree | 3391c5cf2db950582ed1f45c7a32439699636e46 /src/libstd | |
| parent | bd9969fb1138d3a0aef0e860173a5f221a74e7ab (diff) | |
| parent | 50bfc238169844fff8287efc48ee4da3076b2f78 (diff) | |
| download | rust-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.rs | 3 |
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> { |
