Skip to content

Commit

Permalink
Fix various doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Feb 26, 2023
1 parent 4f700d4 commit 0ffbf0f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/sys/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ impl crate::Socket {
///
/// For more information about this option, see [`set_cork`].
///
/// [`set_cork`]: Socket::set_cork
/// [`set_cork`]: crate::Socket::set_cork
#[cfg(all(
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
Expand Down Expand Up @@ -1512,7 +1512,7 @@ impl crate::Socket {
///
/// For more information about this option, see [`set_quickack`].
///
/// [`set_quickack`]: Socket::set_quickack
/// [`set_quickack`]: crate::Socket::set_quickack
#[cfg(all(
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
Expand Down Expand Up @@ -1563,7 +1563,7 @@ impl crate::Socket {
///
/// For more information about this option, see [`set_thin_linear_timeouts`].
///
/// [`set_thin_linear_timeouts`]: Socket::set_thin_linear_timeouts
/// [`set_thin_linear_timeouts`]: crate::Socket::set_thin_linear_timeouts
#[cfg(all(
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
Expand Down Expand Up @@ -2225,7 +2225,7 @@ impl crate::Socket {
///
/// For more information about this option, see [`set_tcp_user_timeout`].
///
/// [`set_tcp_user_timeout`]: Socket::set_tcp_user_timeout
/// [`set_tcp_user_timeout`]: crate::Socket::set_tcp_user_timeout
#[cfg(all(
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
Expand Down Expand Up @@ -2276,6 +2276,8 @@ impl crate::Socket {
/// Detach Berkeley Packet Filter(BPF) from this socket.
///
/// For more information about this option, see [`attach_filter`]
///
/// [`attach_filter`]: crate::Socket::attach_filter
#[cfg(all(feature = "all", any(target_os = "linux", target_os = "android")))]
pub fn detach_filter(&self) -> io::Result<()> {
unsafe { setsockopt(self.as_raw(), libc::SOL_SOCKET, libc::SO_DETACH_FILTER, 0) }
Expand All @@ -2285,7 +2287,7 @@ impl crate::Socket {
///
/// For more information about this option, see [`set_tclass_v6`].
///
/// [`set_tclass_v6`]: Socket::set_tclass_v6
/// [`set_tclass_v6`]: crate::Socket::set_tclass_v6
#[cfg(all(
feature = "all",
any(
Expand Down Expand Up @@ -2370,7 +2372,7 @@ impl crate::Socket {
///
/// For more information about this option, see [`set_tcp_congestion`].
///
/// [`set_tcp_congestion`]: Socket::set_tcp_congestion
/// [`set_tcp_congestion`]: crate::Socket::set_tcp_congestion
#[cfg(all(feature = "all", any(target_os = "freebsd", target_os = "linux")))]
#[cfg_attr(
docsrs,
Expand Down

0 comments on commit 0ffbf0f

Please sign in to comment.