Skip to content

Commit c765e42

Browse files
committed
Fix links in doc
1 parent a4cc392 commit c765e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ 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`.
206206
pub fn connect(&self, address: &SockAddr) -> io::Result<()> {
207207
sys::connect(self.as_raw(), address)
208208
}
@@ -267,7 +267,7 @@ impl Socket {
267267
/// # Notes
268268
///
269269
/// 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`].
270+
/// it. If the behavior is not expected, try `Socket::set_no_peercred`.
271271
pub fn accept(&self) -> io::Result<(Socket, SockAddr)> {
272272
// Use `accept4` on platforms that support it.
273273
#[cfg(any(

0 commit comments

Comments
 (0)