Documentation fix: it's TCP_NODELAY, not SO_NODELAY (#1710)

This commit is contained in:
link2xt
2023-01-03 22:02:13 +03:00
committed by GitHub
parent b16ea79e28
commit c2a1870a3e
2 changed files with 2 additions and 2 deletions

View File

@@ -1000,7 +1000,7 @@ impl ClientBuilder {
// TCP options // TCP options
/// Set whether sockets have `SO_NODELAY` enabled. /// Set whether sockets have `TCP_NODELAY` enabled.
/// ///
/// Default is `true`. /// Default is `true`.
pub fn tcp_nodelay(mut self, enabled: bool) -> ClientBuilder { pub fn tcp_nodelay(mut self, enabled: bool) -> ClientBuilder {

View File

@@ -466,7 +466,7 @@ impl ClientBuilder {
// TCP options // TCP options
/// Set whether sockets have `SO_NODELAY` enabled. /// Set whether sockets have `TCP_NODELAY` enabled.
/// ///
/// Default is `true`. /// Default is `true`.
pub fn tcp_nodelay(self, enabled: bool) -> ClientBuilder { pub fn tcp_nodelay(self, enabled: bool) -> ClientBuilder {