]> git.lizzy.rs Git - rust.git/commitdiff
Fix IPv6 address format in documentation
authorRicardo Martins <ricardo@scarybox.net>
Tue, 17 Mar 2015 14:51:47 +0000 (14:51 +0000)
committerRicardo Martins <ricardo@scarybox.net>
Tue, 17 Mar 2015 14:56:27 +0000 (14:56 +0000)
Very minor fix: in `std::net::Ipv6Addr::new`, the documentation had an incomplete representation of the resulting address, missing the last two groups.

src/libstd/net/ip.rs

index c5f2ae53d22ed87c94748b1997fabd0c93731958..73c2464a6b2cb9b33449568b3149c34a3e0e3a9e 100644 (file)
@@ -202,7 +202,7 @@ fn from_inner(addr: libc::in_addr) -> Ipv4Addr {
 impl Ipv6Addr {
     /// Create a new IPv6 address from eight 16-bit segments.
     ///
-    /// The result will represent the IP address a:b:c:d:e:f
+    /// The result will represent the IP address a:b:c:d:e:f:g:h
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16,
                h: u16) -> Ipv6Addr {