Skip to content

Commit

Permalink
net: fix doc typos for TCP and UDP set_tos methods (#5073)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahovgaard authored Oct 3, 2022
1 parent 6bdcb81 commit ff4ab49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tokio/src/net/tcp/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ impl TcpSocket {

/// Sets the value for the `IP_TOS` option on this socket.
///
/// This value sets the time-to-live field that is used in every packet sent
/// from this socket.
/// This value sets the type-of-service field that is used in every packet
/// sent from this socket.
///
/// **NOTE:** On Windows, `IP_TOS` is only supported on [Windows 8+ or
/// Windows Server 2012+.](https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options)
Expand Down
4 changes: 2 additions & 2 deletions tokio/src/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1544,8 +1544,8 @@ impl UdpSocket {

/// Sets the value for the `IP_TOS` option on this socket.
///
/// This value sets the time-to-live field that is used in every packet sent
/// from this socket.
/// This value sets the type-of-service field that is used in every packet
/// sent from this socket.
///
/// **NOTE:** On Windows, `IP_TOS` is only supported on [Windows 8+ or
/// Windows Server 2012+.](https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options)
Expand Down

0 comments on commit ff4ab49

Please sign in to comment.