Skip to content

Commit

Permalink
Documentation fix: it's TCP_NODELAY, not SO_NODELAY (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Jan 3, 2023
1 parent b16ea79 commit c2a1870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/blocking/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c2a1870

Please sign in to comment.