]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/net/ip.rs
Disallow octal format in Ipv4 string
[rust.git] / library / std / src / net / ip.rs
index 2aa305d7f831eacc3d86e62587cc207ade95f6d8..7f8c33dac561ff11546e95f433ea512eecf00daa 100644 (file)
@@ -67,7 +67,9 @@ pub enum IpAddr {
 ///
 /// `Ipv4Addr` provides a [`FromStr`] implementation. The four octets are in decimal
 /// notation, divided by `.` (this is called "dot-decimal notation").
+/// Notably, octal numbers and hexadecimal numbers are not allowed per [IETF RFC 6943].
 ///
+/// [IETF RFC 6943]: https://tools.ietf.org/html/rfc6943#section-3.1.1
 /// [`FromStr`]: crate::str::FromStr
 ///
 /// # Examples