Skip to content

Commit a3ad891

Browse files
committed
std: remove misleading doc of UdpSocket::send_to/send
Signed-off-by: xizheyin <[email protected]>
1 parent 425a9c0 commit a3ad891

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

library/std/src/net/udp.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ impl UdpSocket {
177177

178178
/// Sends data on the socket to the given address. On success, returns the
179179
/// number of bytes written. Note that the operating system may refuse
180-
/// buffers larger than 65507. However, partial writes are not possible
181-
/// until buffer sizes above `i32::MAX`.
180+
/// buffers larger than 65507.
182181
///
183182
/// Address type can be any implementor of [`ToSocketAddrs`] trait. See its
184183
/// documentation for concrete examples.
@@ -682,8 +681,7 @@ impl UdpSocket {
682681

683682
/// Sends data on the socket to the remote address to which it is connected.
684683
/// On success, returns the number of bytes written. Note that the operating
685-
/// system may refuse buffers larger than 65507. However, partial writes are
686-
/// not possible until buffer sizes above `i32::MAX`.
684+
/// system may refuse buffers larger than 65507.
687685
///
688686
/// [`UdpSocket::connect`] will connect this socket to a remote address. This
689687
/// method will fail if the socket is not connected.

0 commit comments

Comments
 (0)