Skip to content

Commit 4186613

Browse files
committed
Miscellaneous documentation cleanups.
1 parent bde49f1 commit 4186613

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/net/socket.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ pub fn connect_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<(
456456
/// `connect(sockfd, {.sa_family = AF_UNSPEC}, sizeof(struct sockaddr))`
457457
/// — Dissolve the socket's association.
458458
///
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.
460461
///
461462
/// # References
462463
/// - [Beej's Guide to Network Programming]
@@ -482,6 +483,8 @@ pub fn connect_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<(
482483
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect&section=2
483484
/// [illumos]: https://illumos.org/man/3SOCKET/connect
484485
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html
486+
/// [`Errno::AFNOSUPPORT`]: io::Errno::AFNOSUPPORT
487+
/// [`Errno::INVAL`]: io::Errno::INVAL
485488
#[inline]
486489
#[doc(alias = "connect")]
487490
pub fn connect_unspec<Fd: AsFd>(sockfd: Fd) -> io::Result<()> {

0 commit comments

Comments
 (0)