Skip to content

Commit

Permalink
Fix WebSocketUpgrade::write_buffer_size docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Jul 22, 2023
1 parent 303c085 commit a7b929f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axum/src/extract/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<F> WebSocketUpgrade<F> {
/// If set to `0` each message will be eagerly written to the underlying stream.
/// It is often more optimal to allow them to buffer a little, hence the default value.
///
/// Note: [`flush`](WebSocket::flush) will always fully write the buffer regardless.
/// Note: [`flush`](SinkExt::flush) will always fully write the buffer regardless.
pub fn write_buffer_size(mut self, size: usize) -> Self {
self.config.write_buffer_size = size;
self
Expand Down

0 comments on commit a7b929f

Please sign in to comment.