Skip to content

Commit 866e620

Browse files
committed
Ignore broken link
1 parent 926917b commit 866e620

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/socket.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ impl Socket {
202202
/// options can be safely set before and after connecting the socket.
203203
///
204204
/// On Cygwin, a Unix domain socket connect blocks until the server accepts
205-
/// it. If the behavior is not expected, try [`Socket::set_no_peercred`].
205+
/// it. If the behavior is not expected, try [`Socket::set_no_peercred`]
206+
/// (Cygwin only).
207+
#[allow(rustdoc::broken_intra_doc_links)] // Socket::set_no_peercred
206208
pub fn connect(&self, address: &SockAddr) -> io::Result<()> {
207209
sys::connect(self.as_raw(), address)
208210
}
@@ -267,7 +269,9 @@ impl Socket {
267269
/// # Notes
268270
///
269271
/// On Cygwin, a Unix domain socket connect blocks until the server accepts
270-
/// it. If the behavior is not expected, try [`Socket::set_no_peercred`].
272+
/// it. If the behavior is not expected, try [`Socket::set_no_peercred`]
273+
/// (Cygwin only).
274+
#[allow(rustdoc::broken_intra_doc_links)] // Socket::set_no_peercred
271275
pub fn accept(&self) -> io::Result<(Socket, SockAddr)> {
272276
// Use `accept4` on platforms that support it.
273277
#[cfg(any(

0 commit comments

Comments
 (0)