From d762efb5f336483968ab1f4ad59061a81a137ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=87=E9=80=B8?= Date: Mon, 11 Sep 2023 19:03:37 +0800 Subject: [PATCH] Fix doc of protocol. --- src/sys/windows.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sys/windows.rs b/src/sys/windows.rs index 5cd1e8ad..4c5d9879 100644 --- a/src/sys/windows.rs +++ b/src/sys/windows.rs @@ -925,6 +925,8 @@ impl crate::Socket { /// Returns the [`Protocol`] of this socket by checking the `SO_PROTOCOL_INFOW` /// option on this socket. + /// + /// [`Protocol`]: crate::Protocol #[cfg(feature = "all")] pub fn protocol(&self) -> io::Result> { let info = unsafe {