Skip to content

Commit

Permalink
Fix doc of protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft authored and Thomasdezeeuw committed Sep 11, 2023
1 parent 9bd531f commit d762efb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<crate::Protocol>> {
let info = unsafe {
Expand Down

0 comments on commit d762efb

Please sign in to comment.