Skip to content

Commit 0ffbf0f

Browse files
committed
Fix various doc links
1 parent 4f700d4 commit 0ffbf0f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/sys/unix.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ impl crate::Socket {
14611461
///
14621462
/// For more information about this option, see [`set_cork`].
14631463
///
1464-
/// [`set_cork`]: Socket::set_cork
1464+
/// [`set_cork`]: crate::Socket::set_cork
14651465
#[cfg(all(
14661466
feature = "all",
14671467
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
@@ -1512,7 +1512,7 @@ impl crate::Socket {
15121512
///
15131513
/// For more information about this option, see [`set_quickack`].
15141514
///
1515-
/// [`set_quickack`]: Socket::set_quickack
1515+
/// [`set_quickack`]: crate::Socket::set_quickack
15161516
#[cfg(all(
15171517
feature = "all",
15181518
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
@@ -1563,7 +1563,7 @@ impl crate::Socket {
15631563
///
15641564
/// For more information about this option, see [`set_thin_linear_timeouts`].
15651565
///
1566-
/// [`set_thin_linear_timeouts`]: Socket::set_thin_linear_timeouts
1566+
/// [`set_thin_linear_timeouts`]: crate::Socket::set_thin_linear_timeouts
15671567
#[cfg(all(
15681568
feature = "all",
15691569
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
@@ -2225,7 +2225,7 @@ impl crate::Socket {
22252225
///
22262226
/// For more information about this option, see [`set_tcp_user_timeout`].
22272227
///
2228-
/// [`set_tcp_user_timeout`]: Socket::set_tcp_user_timeout
2228+
/// [`set_tcp_user_timeout`]: crate::Socket::set_tcp_user_timeout
22292229
#[cfg(all(
22302230
feature = "all",
22312231
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
@@ -2276,6 +2276,8 @@ impl crate::Socket {
22762276
/// Detach Berkeley Packet Filter(BPF) from this socket.
22772277
///
22782278
/// For more information about this option, see [`attach_filter`]
2279+
///
2280+
/// [`attach_filter`]: crate::Socket::attach_filter
22792281
#[cfg(all(feature = "all", any(target_os = "linux", target_os = "android")))]
22802282
pub fn detach_filter(&self) -> io::Result<()> {
22812283
unsafe { setsockopt(self.as_raw(), libc::SOL_SOCKET, libc::SO_DETACH_FILTER, 0) }
@@ -2285,7 +2287,7 @@ impl crate::Socket {
22852287
///
22862288
/// For more information about this option, see [`set_tclass_v6`].
22872289
///
2288-
/// [`set_tclass_v6`]: Socket::set_tclass_v6
2290+
/// [`set_tclass_v6`]: crate::Socket::set_tclass_v6
22892291
#[cfg(all(
22902292
feature = "all",
22912293
any(
@@ -2370,7 +2372,7 @@ impl crate::Socket {
23702372
///
23712373
/// For more information about this option, see [`set_tcp_congestion`].
23722374
///
2373-
/// [`set_tcp_congestion`]: Socket::set_tcp_congestion
2375+
/// [`set_tcp_congestion`]: crate::Socket::set_tcp_congestion
23742376
#[cfg(all(feature = "all", any(target_os = "freebsd", target_os = "linux")))]
23752377
#[cfg_attr(
23762378
docsrs,

0 commit comments

Comments
 (0)