Skip to content

Commit f29fa12

Browse files
committed
fix: docs
1 parent 5b4582c commit f29fa12

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/socket/tcp.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,15 +2672,10 @@ impl<'a> Socket<'a> {
26722672
/// 1. The new buffer must be larger than the length of remaining data in the current buffer
26732673
/// 2. The new buffer must be multiple of (1 << self.remote_win_shift)
26742674
///
2675-
/// Note: self.remote_win_shift cannot be modified after the connection is established. Use
2676-
/// `new_with_window_scaling` to create a new socket with a pre-defined window scale. Details can
2677-
/// be found in [RFC 1323].
2678-
///
26792675
/// If the new buffer does not meet the requirements, the new buffer is returned as an error;
26802676
/// otherwise, the old buffer is returned as an Ok value.
26812677
///
2682-
/// See also the [new_with_window_scaling](struct.Socket.html#method.new_with_window_scaling) and
2683-
/// [local_recv_win_scale](struct.Socket.html#method.local_recv_win_scale) methods.
2678+
/// See also the [local_recv_win_scale](struct.Socket.html#method.local_recv_win_scale) methods.
26842679
pub fn replace_recv_buffer<T: Into<SocketBuffer<'a>>>(
26852680
&mut self,
26862681
new_buffer: T,

0 commit comments

Comments
 (0)