From ff4ab49bcf107977b21e439619fad20195dba19b Mon Sep 17 00:00:00 2001 From: Anders Kiel Hovgaard Date: Mon, 3 Oct 2022 20:28:50 +0200 Subject: [PATCH] net: fix doc typos for TCP and UDP set_tos methods (#5073) --- tokio/src/net/tcp/socket.rs | 4 ++-- tokio/src/net/udp.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tokio/src/net/tcp/socket.rs b/tokio/src/net/tcp/socket.rs index b00df95f4a6..94534110460 100644 --- a/tokio/src/net/tcp/socket.rs +++ b/tokio/src/net/tcp/socket.rs @@ -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) diff --git a/tokio/src/net/udp.rs b/tokio/src/net/udp.rs index 096756eb4ac..89414259c5e 100644 --- a/tokio/src/net/udp.rs +++ b/tokio/src/net/udp.rs @@ -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)