From c2a1870a3ec62bd45dbb9ce9f6b5d791444970d4 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 3 Jan 2023 22:02:13 +0300 Subject: [PATCH] Documentation fix: it's `TCP_NODELAY`, not `SO_NODELAY` (#1710) --- src/async_impl/client.rs | 2 +- src/blocking/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs index 13f29e80c..b56c7fee7 100644 --- a/src/async_impl/client.rs +++ b/src/async_impl/client.rs @@ -1000,7 +1000,7 @@ impl ClientBuilder { // TCP options - /// Set whether sockets have `SO_NODELAY` enabled. + /// Set whether sockets have `TCP_NODELAY` enabled. /// /// Default is `true`. pub fn tcp_nodelay(mut self, enabled: bool) -> ClientBuilder { diff --git a/src/blocking/client.rs b/src/blocking/client.rs index e2c08bb71..e6ec6735a 100644 --- a/src/blocking/client.rs +++ b/src/blocking/client.rs @@ -466,7 +466,7 @@ impl ClientBuilder { // TCP options - /// Set whether sockets have `SO_NODELAY` enabled. + /// Set whether sockets have `TCP_NODELAY` enabled. /// /// Default is `true`. pub fn tcp_nodelay(self, enabled: bool) -> ClientBuilder {