We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6391d42 commit a0a18d3Copy full SHA for a0a18d3
library/core/src/net/socket_addr.rs
@@ -106,6 +106,11 @@ pub struct SocketAddrV4 {
106
/// - A colon (`:`)
107
/// - The port, encoded as a decimal integer.
108
///
109
+/// For example, the string `[2001:db8::413]:443` represents a `SocketAddrV6`
110
+/// with the address `2001:db8::413` and port `443`. The string
111
+/// `[2001:db8::413%612]:443` represents the same address and port, with a
112
+/// scope identifier of `612`.
113
+///
114
/// Other formats are not accepted.
115
116
/// [IETF RFC 5952]: https://tools.ietf.org/html/rfc5952#section-6
0 commit comments