Skip to content

Commit 6542b19

Browse files
committed
Fix some doc links
1 parent b581d7a commit 6542b19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sys/unix.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ impl crate::Socket {
776776
///
777777
/// # Notes
778778
///
779-
/// On supported platforms you can use [`Protocol::cloexec`].
779+
/// On supported platforms you can use [`Type::cloexec`].
780780
#[cfg(feature = "all")]
781781
pub fn set_cloexec(&self, close_on_exec: bool) -> io::Result<()> {
782782
self._set_cloexec(close_on_exec)
@@ -816,7 +816,7 @@ impl crate::Socket {
816816
///
817817
/// For more information about this option, see [`set_mss`].
818818
///
819-
/// [set_mss]: Socket::set_mss
819+
/// [`set_mss`]: crate::Socket::set_mss
820820
#[cfg(all(feature = "all", not(target_os = "redox")))]
821821
pub fn mss(&self) -> io::Result<u32> {
822822
unsafe {
@@ -874,7 +874,7 @@ impl crate::Socket {
874874
///
875875
/// This function is only available on Unix.
876876
///
877-
/// [`set_reuse_port`]: Socket::set_reuse_port
877+
/// [`set_reuse_port`]: crate::Socket::set_reuse_port
878878
#[cfg(all(
879879
feature = "all",
880880
not(any(target_os = "solaris", target_os = "illumos"))

0 commit comments

Comments
 (0)