File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,8 @@ pub fn connect_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<(
456
456
/// `connect(sockfd, {.sa_family = AF_UNSPEC}, sizeof(struct sockaddr))`
457
457
/// — Dissolve the socket's association.
458
458
///
459
- /// On UDP sockets, BSD platforms report AFNOSUPPORT or INVAL even if the disconnect was successful.
459
+ /// On UDP sockets, BSD platforms report [`Errno::AFNOSUPPORT`] or
460
+ /// [`Errno::INVAL`] even if the disconnect was successful.
460
461
///
461
462
/// # References
462
463
/// - [Beej's Guide to Network Programming]
@@ -482,6 +483,8 @@ pub fn connect_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<(
482
483
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect§ion=2
483
484
/// [illumos]: https://illumos.org/man/3SOCKET/connect
484
485
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html
486
+ /// [`Errno::AFNOSUPPORT`]: io::Errno::AFNOSUPPORT
487
+ /// [`Errno::INVAL`]: io::Errno::INVAL
485
488
#[ inline]
486
489
#[ doc( alias = "connect" ) ]
487
490
pub fn connect_unspec < Fd : AsFd > ( sockfd : Fd ) -> io:: Result < ( ) > {
You can’t perform that action at this time.
0 commit comments