Skip to content

Commit 91c2b28

Browse files
committed
Remove incorrect documentation about SocketAddr having varying layout
1 parent ebcf860 commit 91c2b28

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

library/core/src/net/socket_addr.rs

-11
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ use crate::net::{IpAddr, Ipv4Addr, Ipv6Addr};
88
/// as possibly some version-dependent additional information. See [`SocketAddrV4`]'s and
99
/// [`SocketAddrV6`]'s respective documentation for more details.
1010
///
11-
/// The size of a `SocketAddr` instance may vary depending on the target operating
12-
/// system.
13-
///
1411
/// [IP address]: IpAddr
1512
///
1613
/// # Examples
@@ -42,10 +39,6 @@ pub enum SocketAddr {
4239
///
4340
/// See [`SocketAddr`] for a type encompassing both IPv4 and IPv6 socket addresses.
4441
///
45-
/// The size of a `SocketAddrV4` struct may vary depending on the target operating
46-
/// system. Do not assume that this type has the same memory layout as the underlying
47-
/// system representation.
48-
///
4942
/// [IETF RFC 793]: https://tools.ietf.org/html/rfc793
5043
/// [`IPv4` address]: Ipv4Addr
5144
///
@@ -84,10 +77,6 @@ pub struct SocketAddrV4 {
8477
///
8578
/// See [`SocketAddr`] for a type encompassing both IPv4 and IPv6 socket addresses.
8679
///
87-
/// The size of a `SocketAddrV6` struct may vary depending on the target operating
88-
/// system. Do not assume that this type has the same memory layout as the underlying
89-
/// system representation.
90-
///
9180
/// [IETF RFC 2553, Section 3.3]: https://tools.ietf.org/html/rfc2553#section-3.3
9281
/// [`IPv6` address]: Ipv6Addr
9382
///

0 commit comments

Comments
 (0)