Skip to content

Commit 730defc

Browse files
committed
Fix IPv6 address format in documentation
Very minor fix: in `std::net::Ipv6Addr::new`, the documentation had an incomplete representation of the resulting address, missing the last two groups.
1 parent 31ba212 commit 730defc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/ip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl FromInner<libc::in_addr> for Ipv4Addr {
202202
impl Ipv6Addr {
203203
/// Create a new IPv6 address from eight 16-bit segments.
204204
///
205-
/// The result will represent the IP address a:b:c:d:e:f
205+
/// The result will represent the IP address a:b:c:d:e:f:g:h
206206
#[stable(feature = "rust1", since = "1.0.0")]
207207
pub fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16,
208208
h: u16) -> Ipv6Addr {

0 commit comments

Comments
 (0)